'use client'; import React from 'react'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import UserPill from '@/components/profile/UserPill'; import NotificationCenter from '@/components/notifications/NotificationCenter'; import { useAuth } from '@/lib/auth/AuthContext'; type AlphaNavProps = Record; const nonHomeLinks = [ { href: '/leagues', label: 'Leagues' }, { href: '/races', label: 'Races' }, { href: '/teams', label: 'Teams' }, { href: '/drivers', label: 'Drivers' }, { href: '/leaderboards', label: 'Leaderboards' }, ] as const; export function AlphaNav({}: AlphaNavProps) { const pathname = usePathname(); const { session } = useAuth(); const isAuthenticated = !!session; const navLinks = isAuthenticated ? ([{ href: '/dashboard', label: 'Dashboard' } as const, ...nonHomeLinks] as const) : ([{ href: '/', label: 'Home' } as const, ...nonHomeLinks] as const); const loginHref = '/auth/iracing/start?returnTo=/dashboard'; return ( ); }