import { SidebarGroup, SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem } from '@/components/ui/sidebar'; import { type NavItem, type SharedData } from '@/types'; import { Link, usePage } from '@inertiajs/react'; export function NavMain({ items = [] }: { items: NavItem[] }) { const page = usePage(); const { translations } = page.props; const groupLabel = (translations?.dashboard?.navigation?.group_label as string | undefined) ?? 'Kundenbereich'; return ( {groupLabel} {items.map((item) => ( {item.icon && } {item.title} ))} ); }