"use client";
import Link from "next/link";
import { usePathname } from "next/navigation";
import {
LayoutDashboard,
Users,
Ticket,
BarChart3,
Gift,
Menu,
X
} from "lucide-react";
import { useState } from "react";
interface NavItem {
label: string;
href: string;
icon: React.ReactNode;
}
export default function Sidebar() {
const pathname = usePathname();
const [isOpen, setIsOpen] = useState(false);
const navItems: NavItem[] = [
{
label: "Dashboard",
href: "/admin/dashboard",
icon: ,
},
{
label: "Utilisateurs",
href: "/admin/utilisateurs",
icon: ,
},
{
label: "Tickets",
href: "/admin/tickets",
icon: ,
},
{
label: "Lots & Prix",
href: "/admin/lots",
icon: ,
},
{
label: "Données Marketing",
href: "/admin/marketing-data",
icon: ,
},
{
label: "Tirages",
href: "/admin/tirages",
icon: ,
},
];
const isActive = (href: string) => {
return pathname === href;
};
return (
<>
{/* Mobile menu button */}
{/* Overlay for mobile */}
{isOpen && (
setIsOpen(false)}
/>
)}
{/* Sidebar */}
>
);
}