"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { LayoutDashboard, Trophy, Users, Settings, Shield, } from "lucide-react"; import { cn } from "@/lib/utils"; const navItems = [ { href: "/leagues", label: "Leagues", icon: Trophy }, { href: "/players", label: "Players", icon: Users }, ]; export function Sidebar() { const pathname = usePathname(); return ( ); } export function CompetitionSidebar({ leagueId, competitionId, showMyTeam, }: { leagueId: string; competitionId: string; showMyTeam?: boolean; }) { const pathname = usePathname(); const base = `/leagues/${leagueId}/competitions/${competitionId}`; const items = [ { href: base, label: "Overview", icon: LayoutDashboard }, ...(showMyTeam ? [{ href: `${base}/my-team`, label: "My Team", icon: Users }] : []), { href: `${base}/fixtures`, label: "Fixtures", icon: Trophy }, { href: `${base}/transfers`, label: "Transfers", icon: Users }, { href: `${base}/admin/results`, label: "Results Admin", icon: Settings }, ]; return ( ); }