"use client"; import { usePathname } from "next/navigation"; import { isActivePath, navItems } from "@/lib/navigation"; import { cn } from "@/lib/utils"; function NavItem({ href, label, active, Icon, }: { href: string; label: string; active: boolean; Icon: React.ComponentType>; }) { return ( {active && ( )} ); } export function NavRail() { const pathname = usePathname(); const path = pathname ?? "/"; return ( ); }