'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 { Box } from '@/ui/Box'; import { Text } from '@/ui/Text'; import { CardStack } from '@/ui/CardStack'; import { Center } from '@/ui/Center'; 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) { const actions = ( FULL SCHEDULE → ); return ( {races.length === 0 ? (
No races scheduled
) : ( races.slice(0, 3).map((race) => ( )) )}
); }