chore(react/dialogs): add back badges for choose note type

This commit is contained in:
Elian Doran
2025-08-06 12:12:37 +03:00
parent 33e3112290
commit f7e7b38551
3 changed files with 18 additions and 6 deletions

View File

@@ -22,16 +22,16 @@ export default function FormList({ children, onSelect }: FormListOpts) {
}
interface FormListItemOpts {
text: string;
children: ComponentChildren;
icon?: string;
value?: string;
}
export function FormListItem({ text, icon, value }: FormListItemOpts) {
export function FormListItem({ children, icon, value }: FormListItemOpts) {
return (
<a class="dropdown-item" data-value={value}>
<Icon icon={icon} />&nbsp;
{text}
{children}
</a>
);
}