"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { Button } from "@/components/ui/button" import { User, ShoppingBag, Wrench, Heart, MapPin, Settings, HelpCircle, LogOut, Home } from "lucide-react" const menuItems = [ { href: "/dashboard", label: "نظرة عامة", icon: Home, }, { href: "/dashboard/orders", label: "طلباتي", icon: ShoppingBag, }, { href: "/dashboard/services", label: "خدماتي", icon: Wrench, }, { href: "/dashboard/favorites", label: "المفضلة", icon: Heart, }, { href: "/dashboard/addresses", label: "العناوين", icon: MapPin, }, { href: "/dashboard/profile", label: "الملف الشخصي", icon: User, }, { href: "/dashboard/settings", label: "الإعدادات", icon: Settings, }, { href: "/dashboard/support", label: "المساعدة", icon: HelpCircle, }, ] export default function DashboardSidebar() { const pathname = usePathname() const handleLogout = async () => { try { await fetch("/api/auth/logout", { method: "POST" }) window.location.href = "/" } catch (error) { console.error("Logout error:", error) } } return (

لوحة التحكم

) }