import { Badge } from './Badge'; import { Box } from './Box'; import { Stack } from './Stack'; import { Surface } from './Surface'; import { Text } from './Text'; interface PenaltyRowProps { driverName: string; type: string; reason: string; notes?: string; value: string | number; valueLabel?: string; } export function PenaltyRow({ driverName, type, reason, notes, value, valueLabel, }: PenaltyRowProps) { return ( ! {driverName} {type.replace('_', ' ')} {reason} {notes && ( {notes} )} {value} {valueLabel} ); }