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