"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { cn } from "@/lib/utils"; import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"; import type { NavItem } from "@/components/nav/nav-items"; export function SideNavItem({ item, collapsed }: { item: NavItem; collapsed: boolean }) { const pathname = usePathname(); const isActive = pathname === item.href; const link = ( {!collapsed && {item.label}} ); if (!collapsed) return link; return ( {item.label} ); }