'use client'; import { Link } from '@inertiajs/react'; import type { Icon } from '@tabler/icons-react'; import * as React from 'react'; import { SidebarGroup, SidebarGroupContent, SidebarMenu, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, } from '@/components/ui/sidebar'; export function NavSecondary({ items, ...props }: { items: { title: string; url: string; icon: Icon; badge?: number; }[]; } & React.ComponentPropsWithoutRef) { return ( {items.map((item) => ( {item.title} {!!item.badge && ( {item.badge} )} ))} ); }