import { NavLink, useNavigate } from 'react-router-dom' import { LayoutDashboard, ShoppingBag, MessageCircle, User, LogOut, X, Globe, Rocket, CreditCard } from 'lucide-react' import { useAuthStore } from '../../store/authStore' import { Avatar } from '../ui/Avatar' import { cn } from '../../utils/cn' const links = [ { to: '/', icon: Globe, label: 'الصفحة الرئيسية' }, { to: '/dashboard', icon: LayoutDashboard, label: 'نظرة عامة', end: true }, { to: '/dashboard/orders', icon: ShoppingBag, label: 'طلباتي' }, { to: '/dashboard/subscriptions', icon: CreditCard, label: 'الاستضافة' }, { to: '/dashboard/chat', icon: MessageCircle, label: 'المحادثة' }, { to: '/dashboard/profile', icon: User, label: 'الملف الشخصي' }, ] export function ClientSidebar({ open, onClose }) { const { user, logout } = useAuthStore() const navigate = useNavigate() const handleLogout = () => { logout() navigate('/') } return ( <> {open &&
} > ) }