"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { useAuth } from "@/hooks/useAuth"; import { cn } from "@/lib/utils"; import { LayoutDashboard, Calendar, FileText, Shield, Tag, Users, Radio, Settings, Wrench, LogOut, ArrowLeft, Inbox, ImageIcon, HelpCircle, } from "lucide-react"; const navItems = [ { href: "/admin/overview", label: "Overview", icon: LayoutDashboard, adminOnly: false }, { href: "/admin/events", label: "Events", icon: Calendar, adminOnly: false }, { href: "/admin/gallery", label: "Gallery", icon: ImageIcon, adminOnly: false }, { href: "/admin/blog", label: "Blog", icon: FileText, adminOnly: false }, { href: "/admin/faq", label: "FAQ", icon: HelpCircle, adminOnly: false }, { href: "/admin/submissions", label: "Submissions", icon: Inbox, adminOnly: false }, { href: "/admin/moderation", label: "Moderation", icon: Shield, adminOnly: false }, { href: "/admin/categories", label: "Categories", icon: Tag, adminOnly: false }, { href: "/admin/users", label: "Users", icon: Users, adminOnly: true }, { href: "/admin/relays", label: "Relays", icon: Radio, adminOnly: true }, { href: "/admin/settings", label: "Settings", icon: Settings, adminOnly: true }, { href: "/admin/nostr", label: "Nostr Tools", icon: Wrench, adminOnly: true }, ]; export function AdminSidebar() { const pathname = usePathname(); const { user, logout, isAdmin } = useAuth(); const shortPubkey = user?.pubkey ? `${user.pubkey.slice(0, 8)}...${user.pubkey.slice(-8)}` : ""; return ( ); }