'use client'; import { UpcomingRaceItem } from '@/components/races/UpcomingRaceItem'; import { routes } from '@/lib/routing/RouteConfig'; import { Heading } from '@/ui/Heading'; import { Link } from '@/ui/Link'; import { Panel } from '@/ui/Panel'; import { Stack } from '@/ui/primitives/Stack'; import { Text } from '@/ui/Text'; interface Race { id: string; track: string; car: string; formattedDate: string; } interface RecentRacesPanelProps { races: Race[]; } /** * RecentRacesPanel - Semantic section for upcoming/recent races. */ export function RecentRacesPanel({ races }: RecentRacesPanelProps) { return ( UPCOMING RACES FULL SCHEDULE → {races.length === 0 ? ( No races scheduled ) : ( races.slice(0, 3).map((race) => ( )) )} ); }