'use client'; import React from 'react'; import { Calendar, Clock, MapPin, Car, Trophy } from 'lucide-react'; import { Card } from '@/ui/Card'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; import { Heading } from '@/ui/Heading'; import { Badge } from '@/ui/Badge'; import { Grid } from '@/ui/Grid'; import { Icon } from '@/ui/Icon'; interface Race { id: string; name: string; track?: string; car?: string; formattedDate: string; formattedTime: string; status: string; statusLabel: string; sessionType?: string; isPast?: boolean; } interface ScheduleRaceCardProps { race: Race; } export function ScheduleRaceCard({ race }: ScheduleRaceCardProps) { return ( {race.name} {race.statusLabel} {race.formattedDate} {race.formattedTime} {race.track && ( {race.track} )} {race.car && ( {race.car} )} {race.sessionType && ( {race.sessionType} Session )} ); }