"use client"; import { useRouter, usePathname } from "next/navigation"; import DragonEye from "@/components/DragonEye"; import { LayoutDashboard, Twitch, Youtube, Instagram, Music2, DollarSign, LogOut, } from "lucide-react"; const nav = [ { label: "Vue générale", href: "/dashboard", icon: LayoutDashboard }, { label: "Twitch", href: "/twitch", icon: Twitch }, { label: "YouTube", href: "/youtube", icon: Youtube }, { label: "Instagram", href: "/instagram", icon: Instagram }, { label: "TikTok", href: "/tiktok", icon: Music2 }, { label: "Finances", href: "/finances", icon: DollarSign }, ]; export default function Sidebar() { const router = useRouter(); const pathname = usePathname(); const handleLogout = () => { sessionStorage.clear(); router.push("/"); }; return ( ); }