import type { TemplateResult } from 'lit'; import { html } from 'lit'; import { ArrowLeftBigIcon } from '../../../_common/icons/index.js'; import type { Menu } from './menu.js'; export const menuTitleItem = ( name: string, onBack: () => void, ops?: { right?: TemplateResult; } ): Menu => { return { type: 'custom', render: html`
${menuTitle(name, onBack)}
${ops?.right}
`, }; }; export const menuTitle = (name: string, onBack: () => void) => { return html`
${ArrowLeftBigIcon}
${name}
`; };