'use client'; import { Box } from '@/ui/Box'; import { DashboardRail } from '@/ui/DashboardRail'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; import { Calendar, Home, Layout, Settings, Trophy, Users } from 'lucide-react'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; export interface GlobalSidebarViewData {} export function GlobalSidebarTemplate(_props: GlobalSidebarViewData) { const pathname = usePathname(); const navItems = [ { label: 'Dashboard', href: '/', icon: Home }, { label: 'Leagues', href: '/leagues', icon: Trophy }, { label: 'Teams', href: '/teams', icon: Users }, { label: 'Races', href: '/races', icon: Calendar }, { label: 'Leaderboards', href: '/leaderboards', icon: Layout }, { label: 'Settings', href: '/settings', icon: Settings }, ]; return ( NAVIGATION {navItems.map((item) => { const isActive = pathname === item.href; const Icon = item.icon; return ( {item.label} {isActive && ( )} ); })} ); }