import type { EnrichedGrid } from '../types' import { DriverCell } from './DriverCell' import { formatLapTime } from '../utils' interface Props { grid: EnrichedGrid[] } export function StartingGridTable({ grid }: Props) { if (grid.length === 0) { return (
Starting grid not ingested. Run{' '} box-box --ingest-session <key> to load this dataset.
) } return (
{grid.map((g) => ( ))}
P Driver Team Lap Time
{g.position} {g.team_name} {g.lap_duration != null ? formatLapTime(g.lap_duration) : '—'}
) }