import { teamColor } from '../../utils' import type { LiveTimingRow } from '../../lib/live' import { driverCode, tyreClass, tyreLabel } from '../../lib/live' import type { GapHistoryMap } from '../../lib/gapHistory' import { GapSparkline } from './GapSparkline' interface Props { rows: LiveTimingRow[] history: GapHistoryMap pinned: string[] onToggle: (racingNumber: string) => void } export function PinnedDrivers({ rows, history, pinned, onToggle }: Props) { if (pinned.length === 0) return null const rowsByNumber = new Map(rows.map((row) => [row.RacingNumber, row])) return (