import { Link, useLocation } from "wouter"; import { LayoutDashboard, FolderKanban, Users, Image as ImageIcon, Sparkles, Columns3, LogOut } from "lucide-react"; import { useAuth } from "@/context/AuthContext"; import { cn } from "@/lib/utils"; const navigation = [ { name: "الرئيسية", href: "/", icon: LayoutDashboard }, { name: "ترتيب المهام", href: "/kanban", icon: Columns3 }, { name: "المشاريع", href: "/projects", icon: FolderKanban }, { name: "العملاء", href: "/clients", icon: Users }, ]; export function Layout({ children }: { children: React.ReactNode }) { const [location, setLocation] = useLocation(); const { signOut, user } = useAuth(); const handleLogout = async () => { await signOut(); setLocation("/login"); }; return (