"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; export function NavLink({ href, title, children, }: { href: string; title?: string; children: React.ReactNode; }) { const pathname = usePathname(); const isActive = pathname === href || (href !== "/" && pathname.startsWith(href)); return ( {children} ); }