"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { useUnconfiguredNodes } from "@/lib/useNodes"; import { useAuth } from "@/components/AuthProvider"; const links = [ { href: "/dashboard", label: "Dashboard" }, { href: "/nodes", label: "Nodes" }, { href: "/systems", label: "Systems" }, { href: "/calls", label: "Calls" }, { href: "/map", label: "Map" }, ]; const adminLinks = [ { href: "/tokens", label: "Tokens" }, ]; export function Nav() { const { user, isAdmin, signOut } = useAuth(); const pathname = usePathname(); const { nodes: pending } = useUnconfiguredNodes(); if (!user) return null; return ( ); }