import type { EnrichedResult } from '../types' interface Props { results: EnrichedResult[] hasStints: boolean } export function StrategyView({ results, hasStints }: Props) { if (!hasStints) { return (
Stints not available. The backend does not yet expose tyre compound and stint ranges in /api/v1/race-hub. Strategy charts require per-driver stints: compound, lap_start, lap_end.
{results.length > 0 && ( <>
Laps Completed from results — hint at pit count
{results.map((r) => ( ))}
P Driver Laps
{r.position} {r.name_acronym || r.driver_number} 0 ? 'var(--text)' : 'var(--text-3)' }}> {r.number_of_laps > 0 ? r.number_of_laps : '—'}
)}
) } // Placeholder for when stints data is available return (
Strategy chart: not yet implemented.
) }