/** * ════════════════════════════════════════════════════════════ * مُصادَق (Musadaq) — Premium Dark Sidebar * ════════════════════════════════════════════════════════════ */ import { NavLink, useNavigate } from 'react-router-dom'; import { LayoutDashboard, FileText, Building2, Users, Settings, LogOut, Crown } from 'lucide-react'; import { useAuthStore } from '../../store/authStore'; const menuItems = [ { icon: LayoutDashboard, label: 'الرئيسية', path: '/dashboard' }, { icon: Crown, label: 'لوحة النخبة', path: '/elite-dashboard' }, { icon: FileText, label: 'الفواتير', path: '/invoices' }, { icon: Building2, label: 'الشركات', path: '/companies' }, { icon: Users, label: 'الموظفون', path: '/staff' }, { icon: Settings, label: 'الإعدادات', path: '/settings' }, ]; export const Sidebar = () => { const navigate = useNavigate(); const clearAuth = useAuthStore((state) => state.clearAuth); const handleLogout = () => { clearAuth(); navigate('/login'); }; return ( ); };