"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: "Overview" }, { type: "link", href: "/manage", label: "Dashboard", icon: LayoutDashboardIcon, }, { type: "divider" }, { type: "section", label: "Management" }, { type: "link", href: "/manage/users", label: "Users", icon: UsersIcon }, { type: "link", href: "/manage/hardware", label: "Hardware", icon: CpuIcon, }, { type: "link", href: "/manage/games", label: "Games", icon: Gamepad2Icon }, { type: "divider" }, { type: "section", label: "Moderation" }, { type: "link", href: "/manage/reports", label: "Reports", icon: FlagIcon }, { type: "link", href: "/manage/benchmarks", label: "Benchmarks", icon: BarChart3Icon, }, { type: "link", href: "/manage/comments", label: "Comments", icon: MessageSquareIcon, }, ] export function ManageSidebar() { const pathname = usePathname() return ( ) }