import type { ComponentType, SVGProps } from 'react'; import { NavLink } from 'react-router-dom'; type IconType = ComponentType>; type SidebarNavItemProps = { to: string; label: string; icon: IconType; collapsed: boolean; onClick?: () => void; }; export function SidebarNavItem({ to, label, icon: Icon, collapsed, onClick, }: Readonly) { const layoutClass = collapsed ? 'mx-auto w-8 justify-center px-0' : 'px-2 lg:w-full lg:justify-start'; return ( `inline-flex h-8 items-center rounded-lg text-sm font-medium transition ${layoutClass} ${ isActive ? 'ui-accent-active' : 'ui-body-secondary hover:bg-zinc-500/15' }` } > {!collapsed ? ( {label} ) : ( {label} )} ); }