'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { useAuth } from '@/lib/auth'; import { cn } from '@/lib/utils'; import { LayoutDashboard, Users, FileText, Shield, Scale, Flag, Settings, Activity, LogOut, ChevronLeft, ChevronRight, Sliders, FolderTree, HardDrive, AtSign, Brain, ScrollText, } from 'lucide-react'; import { useState } from 'react'; const navItems = [ { href: '/', label: 'Dashboard', icon: LayoutDashboard }, { href: '/users', label: 'Users', icon: Users }, { href: '/posts', label: 'Posts', icon: FileText }, { href: '/moderation', label: 'Moderation', icon: Shield }, { href: '/appeals', label: 'Appeals', icon: Scale }, { href: '/reports', label: 'Reports', icon: Flag }, { href: '/algorithm', label: 'Algorithm', icon: Sliders }, { href: '/categories', label: 'Categories', icon: FolderTree }, { href: '/usernames', label: 'Usernames', icon: AtSign }, { href: '/ai-moderation', label: 'AI Moderation', icon: Brain }, { href: '/ai-audit-log', label: 'AI Audit Log', icon: ScrollText }, { href: '/storage', label: 'Storage', icon: HardDrive }, { href: '/system', label: 'System Health', icon: Activity }, { href: '/settings', label: 'Settings', icon: Settings }, ]; export default function Sidebar() { const pathname = usePathname(); const { logout } = useAuth(); const [collapsed, setCollapsed] = useState(false); return ( ); }