import { Card } from '@/ui/Card'; import { DriverEntryRow } from '@/ui/DriverEntryRow'; import { Heading } from '@/ui/Heading'; import { Icon } from '@/ui/Icon'; import { Stack } from '@/ui/Stack'; import { Surface } from '@/ui/Surface'; import { Text } from '@/ui/Text'; import { Users } from 'lucide-react'; interface Entry { id: string; name: string; avatarUrl: string; country: string; rating?: number | null; isCurrentUser: boolean; } interface RaceEntryListProps { entries: Entry[]; onDriverClick: (driverId: string) => void; } export function RaceEntryList({ entries, onDriverClick }: RaceEntryListProps) { return ( }>Entry List {entries.length} drivers {entries.length === 0 ? ( No drivers registered yet ) : ( {entries.map((driver, index) => ( onDriverClick(driver.id)} /> ))} )} ); }