import type { LinkProps } from "@tanstack/react-router"; import { Link } from "@tanstack/react-router"; import type { ComponentProps } from "react"; interface NavLinkProps extends Omit { label: string; icon?: React.ReactNode; } export default function NavLink({ label, icon, ...props }: NavLinkProps) { return ( `flex items-center gap-2 px-3 py-2 rounded-md transition-colors cursor-pointer ${ isActive ? "bg-zinc-100 font-medium text-zinc-900" : "text-zinc-600 hover:bg-zinc-50 hover:text-zinc-900" }` } > {icon && {icon}} {label} ); }