'use client'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; import { Box } from '@/ui/Box'; import { Surface } from '@/ui/Surface'; import { Icon } from '@/ui/Icon'; import { Clock, MapPin, Car, ChevronRight } from 'lucide-react'; import { Button } from '@/ui/Button'; import Link from 'next/link'; interface NextUpRacePanelProps { race: any; onRaceClick: (id: string) => void; } export function NextUpRacePanel({ race, onRaceClick }: NextUpRacePanelProps) { if (!race) return null; return ( Next Up { e.preventDefault(); onRaceClick(race.id); }} cursor="pointer" hoverBg="rgba(255, 255, 255, 0.02)" display="block" style={{ textDecoration: 'none', color: 'inherit' }} > {race.leagueName} {race.track} {race.timeLabel} {race.car} ); }