import { CountryFlagFormatter } from '@/lib/formatters/CountryFlagFormatter'; import { Badge } from '@/ui/Badge'; import { Icon } from '@/ui/Icon'; import { Image } from '@/ui/Image'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; import { Zap } from 'lucide-react'; interface DriverEntryRowProps { index: number; name: string; avatarUrl: string; country: string; rating?: number | null; isCurrentUser: boolean; onClick: () => void; } export function DriverEntryRow({ index, name, avatarUrl, country, rating, isCurrentUser, onClick, }: DriverEntryRowProps) { return ( {index + 1} {name} {CountryFlagFormatter.fromCountryCode(country).toString()} {name} {isCurrentUser && You} {country} {rating != null && ( {rating} )} ); }