"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import React from "react"; import { Icons } from "./icons"; import { Button } from "./ui/button"; import { cn } from "@/lib/utils"; function NavLink({ href, name, icon }: NavLink) { const active = usePathname() === href; const IconComponent = icon ? Icons[icon as keyof typeof Icons] : null; return (