"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; export default function Nav() { const pathname = usePathname() ?? "/"; const isUsers = pathname.startsWith("/users"); const isAccounts = !isUsers; return (
CM Bot V2 // dashboard
); } function NavLink({ href, active, children, }: { href: string; active: boolean; children: React.ReactNode; }) { const base = "inline-flex items-center border-2 px-3 py-1.5 font-mono text-[11px] font-bold uppercase tracking-[0.2em] transition-colors"; const activeCls = "border-zinc-900 bg-yellow-300 text-zinc-900"; const inactiveCls = "border-transparent text-zinc-700 hover:border-zinc-900 hover:bg-yellow-50 hover:text-zinc-900"; return ( {children} ); }