"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { UsersIcon, CpuIcon, Gamepad2Icon, MessageSquareIcon, FlagIcon, BarChart3Icon, LayoutDashboardIcon, } from "lucide-react" type NavItem = | { type: "section"; label: string } | { type: "divider" } | { type: "link"; href: string; label: string; icon: React.ElementType } const navItems: NavItem[] = [ { type: "section", label: "Management" }, { type: "link", href: "/admin/users", label: "Users", icon: UsersIcon }, { type: "link", href: "/admin/hardware", label: "Hardware", icon: CpuIcon }, { type: "link", href: "/admin/games", label: "Games", icon: Gamepad2Icon }, { type: "divider" }, { type: "section", label: "Moderation" }, { type: "link", href: "/admin/reports", label: "Reports", icon: FlagIcon }, { type: "link", href: "/admin/benchmarks", label: "Benchmarks", icon: BarChart3Icon }, { type: "link", href: "/admin/comments", label: "Comments", icon: MessageSquareIcon }, ] export function AdminSidebar() { const pathname = usePathname() return ( ) }