import type { LiveStintData } from '../../types' import { compoundClass, compoundLetter } from '../../lib/live' interface Props { stints: LiveStintData[] | undefined } export function StintHistory({ stints }: Props) { if (!stints || stints.length === 0) { return - } return ( {stints.map((stint, index) => ( {index > 0 && } {compoundLetter(stint.Compound)} {stint.Laps > 0 && {stint.Laps}} ))} ) }