"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { cn } from "@/lib/utils"; export function NavLink({ href, match, children, }: { href: string; match?: string[]; children: React.ReactNode; }) { const pathname = usePathname(); const active = (match ?? [href]).some( (m) => pathname === m || pathname.startsWith(m + "/") ); return ( {children} ); }