"use client" import Link from "next/link" import { Button } from "@/components/ui/button" import { Menu, LogOut, User as UserIcon } from "lucide-react" import { useState } from "react" export default function DashboardLayout({ children, }: { children: React.ReactNode }) { const [sidebarOpen, setSidebarOpen] = useState(false) const navItems = [ { href: "/dashboard", label: "Tableau de Bord", icon: "📊" }, { href: "/dashboard/votes/active", label: "Votes Actifs", icon: "🗳️" }, { href: "/dashboard/votes/upcoming", label: "Votes à Venir", icon: "📅" }, { href: "/dashboard/votes/history", label: "Historique", icon: "📜" }, { href: "/dashboard/votes/archives", label: "Archives", icon: "🗂️" }, { href: "/dashboard/profile", label: "Profil", icon: "👤" }, ] return (