import { Box } from '@/ui/Box'; import { Icon } from '@/ui/Icon'; import { Text } from '@/ui/Text'; import { Star, Trophy } from 'lucide-react'; interface DriverRatingPillProps { rating: number | null; rank: number | null; } export function DriverRatingPill({ rating, rank }: DriverRatingPillProps) { return ( {rating !== null ? rating : '—'} {rank !== null && ( #{rank} )} ); }