Reworked settings screens.

This commit is contained in:
Mike Cao committed 2025-05-03 00:31:37 -07:00
1 parent c1d301ffdc
commit 0a16ab38e4
58 files changed
+362 -365

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import { Text, List, ListItem } from '@umami/react-zen';
export interface MenuNavProps {
items: { id: string; label: string; url: string }[];
selectedKey?: string;
}
export function SideMenu({ items, selectedKey }: MenuNavProps) {
return (
<List>
{items.map(({ id, label, url }) => {
return (
<ListItem key={id} id={id} href={url}>
<Text weight={id === selectedKey ? 'bold' : 'regular'}>{label}</Text>
</ListItem>
);
})}
</List>
);
}