'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 { Zap, ChevronRight } from 'lucide-react'; import Link from 'next/link'; interface RacesLiveRailProps { liveRaces: any[]; onRaceClick: (id: string) => void; } export function RacesLiveRail({ liveRaces, onRaceClick }: RacesLiveRailProps) { if (liveRaces.length === 0) return null; return ( Live Now {liveRaces.map(race => ( { e.preventDefault(); onRaceClick(race.id); }} cursor="pointer" minWidth="280px" position="relative" hoverBg="rgba(255, 255, 255, 0.02)" display="block" style={{ textDecoration: 'none', color: 'inherit' }} > {race.leagueName} {race.track} {race.timeLabel} ))} ); }