"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { ReactNode } from "react"; export default function NavItem({ path, children }: { path: string; children: ReactNode }) { const pathname = usePathname(); const isActive = pathname === path; return ( {children} ); }