'use client'; import React from 'react'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; type AlphaNavProps = { isAuthenticated?: boolean; }; const nonHomeLinks = [ { href: '/profile', label: 'Profile' }, { href: '/leagues', label: 'Leagues' }, { href: '/teams', label: 'Teams' }, { href: '/drivers', label: 'Drivers' }, ] as const; export function AlphaNav({ isAuthenticated }: AlphaNavProps) { const pathname = usePathname(); 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 ( ); }