import { Column, Heading, Row, Text } from '@umami/react-zen'; import Link from 'next/link'; import { IconLabel } from '@/components/common/IconLabel'; interface NavMenuData { id: string; label: string; icon?: any; path: string; } interface NavMenuItems { label?: string; items: NavMenuData[]; } export interface NavMenuProps { items: NavMenuItems[]; title?: string; selectedKey?: string; allowMinimize?: boolean; onItemClick?: () => void; } export function NavMenu({ items = [], title, selectedKey, allowMinimize, onItemClick, ...props }: NavMenuProps) { const renderItems = (items: NavMenuData[]) => { return items?.map(({ id, label, icon, path }) => { const isSelected = selectedKey === id; return ( {label} ); }); }; return ( {title && ( {title} )} {items?.map(({ label, items }, index) => { if (label) { return ( {label} {renderItems(items)} ); } return null; })} ); }