Files
gridpilot.gg/apps/website/components/races/NextRaceCardWrapper.tsx
2026-01-18 13:26:35 +01:00

31 lines
717 B
TypeScript

import { routes } from '@/lib/routing/RouteConfig';
import { NextRaceCard as UiNextRaceCard } from '@/components/races/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)}
/>
);
}