"use client"; import { useState } from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { Menu, X, Trophy, Sparkles } from "lucide-react"; interface DashboardSidebarProps { guildId: string; } const menuItems = [ { id: "leaderboard", label: "Leaderboard", icon: Trophy, href: "/leaderboard" }, { id: "leveling", label: "Leveling", icon: Sparkles, href: "/leveling" }, ]; export default function DashboardSidebar({ guildId }: DashboardSidebarProps) { const [sidebarOpen, setSidebarOpen] = useState(false); const pathname = usePathname(); const getActiveTab = () => { if (pathname.includes("/leveling")) return "leveling"; return "leaderboard"; }; const activeTab = getActiveTab(); return ( <> {/* Mobile Menu Button */} {/* Mobile Sidebar Overlay */} {sidebarOpen && (