"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { LayoutDashboard, Users, CreditCard, Activity, Brain, Server, ArrowLeft, LogOut, ShieldCheck, } from "lucide-react" import { cn, initials } from "@/lib/utils" import { signOut } from "@/app/actions/auth" export const ADMIN_NAV = [ { label: "Overview", href: "/admin", icon: LayoutDashboard }, { label: "Users", href: "/admin/users", icon: Users }, { label: "Billing", href: "/admin/billing", icon: CreditCard }, { label: "Activity & Audit", href: "/admin/activity", icon: Activity }, { label: "AI Usage", href: "/admin/ai-usage", icon: Brain }, { label: "System", href: "/admin/system", icon: Server }, ] function isActive(pathname: string, href: string) { return href === "/admin" ? pathname === "/admin" : pathname.startsWith(href) } export function AdminSidebar({ email, name }: { email: string; name: string }) { const pathname = usePathname() return ( ) }