import { NavLink, useNavigate } from 'react-router-dom' import { LayoutDashboard, ShoppingBag, Palette, Monitor, MessageCircle, Mail, LogOut, X, Users, UserCog, Shield, DollarSign, Layers, Server, CreditCard } from 'lucide-react' import { useAuthStore } from '../../store/authStore' import { cn } from '../../utils/cn' const links = [ { to: '/x9k2-manage/panel', icon: LayoutDashboard, label: 'نظرة عامة', end: true }, { to: '/x9k2-manage/panel/orders', icon: ShoppingBag, label: 'الطلبات' }, { to: '/x9k2-manage/panel/users', icon: Users, label: 'المستخدمين' }, { to: '/x9k2-manage/panel/chat', icon: MessageCircle, label: 'المحادثات' }, { to: '/x9k2-manage/panel/templates', icon: Palette, label: 'القوالب' }, { to: '/x9k2-manage/panel/server-plans', icon: Server, label: 'باقات الاستضافة' }, { to: '/x9k2-manage/panel/server-subscriptions', icon: CreditCard, label: 'اشتراكات الاستضافة' }, { to: '/x9k2-manage/panel/landing', icon: Monitor, label: 'تعديل Landing' }, { to: '/x9k2-manage/panel/contact', icon: Mail, label: 'رسائل التواصل' }, ] const accounts = [ { to: '/x9k2-manage/panel/accounts', icon: UserCog, label: 'الحسابات' }, { to: '/x9k2-manage/panel/accounting', icon: DollarSign, label: 'المحاسبة' }, ] export function AdminSidebar({ open, onClose }) { const { logout } = useAuthStore() const navigate = useNavigate() const handleLogout = () => { logout() navigate('/x9k2-manage') } return ( <> {open &&
} ) }