'use client'; import React from 'react'; import { Calendar, Clock, Car, LucideIcon } from 'lucide-react'; import { Surface } from '@/ui/Surface'; import { Stack } from '@/ui/Stack'; import { Box } from '@/ui/Box'; import { Badge } from '@/ui/Badge'; import { Icon } from '@/ui/Icon'; import { Heading } from '@/ui/Heading'; import { Text } from '@/ui/Text'; import { DecorativeBlur } from '@/ui/DecorativeBlur'; interface RaceHeroProps { track: string; scheduledAt: string; car: string; status: 'scheduled' | 'running' | 'completed' | 'cancelled'; statusConfig: { icon: LucideIcon; variant: 'primary' | 'success' | 'default' | 'warning'; label: string; description: string; }; } export function RaceHero({ track, scheduledAt, car, status, statusConfig }: RaceHeroProps) { const StatusIcon = statusConfig.icon; return ( {status === 'running' && ( )} {status === 'running' && } {statusConfig.label} {status === 'scheduled' && ( Starts in TBD )} {track} {new Date(scheduledAt).toLocaleDateString()} {new Date(scheduledAt).toLocaleTimeString()} {car} ); }