Files
gridpilot.gg/apps/website/ui/NextRaceCardWrapper.tsx
2026-01-15 17:12:24 +01:00

31 lines
703 B
TypeScript

import { routes } from '@/lib/routing/RouteConfig';
import { NextRaceCard as UiNextRaceCard } from '@/ui/NextRaceCard';
interface NextRaceCardProps {
nextRace: {
id: string;
track: string;
car: string;
formattedDate: string;
formattedTime: string;
timeUntil: string;
isMyLeague: boolean;
};
}
export function NextRaceCard({ nextRace }: NextRaceCardProps) {
return (
<UiNextRaceCard
track={nextRace.track}
car={nextRace.car}
formattedDate={nextRace.formattedDate}
formattedTime={nextRace.formattedTime}
timeUntil={nextRace.timeUntil}
isMyLeague={nextRace.isMyLeague}
href={routes.race.detail(nextRace.id)}
/>
);
}