"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import type { ReactNode } from "react"; import { cn } from "@/lib/utils"; export function NavLink({ href, children }: { href: string; children: ReactNode }) { const pathname = usePathname(); const active = href === "/" ? pathname === "/" : pathname.startsWith(href); return ( {children} ); }