import React, { ReactNode } from 'react'; import { Box } from '@/ui/Box'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; import { Table, TableHead, TableBody, TableRow, TableHeader, TableCell } from '@/ui/Table'; interface RosterTableProps { children: ReactNode; columns?: string[]; } export function RosterTable({ children, columns = ['Driver', 'Role', 'Joined', 'Rating', 'Rank'] }: RosterTableProps) { return ( {columns.map((col) => ( {col} ))} {null} {children}
); } interface RosterTableRowProps { driver: ReactNode; role: ReactNode; joined: string; rating: ReactNode; rank: ReactNode; actions?: ReactNode; onClick?: () => void; } export function RosterTableRow({ driver, role, joined, rating, rank, actions, onClick, }: RosterTableRowProps) { return ( {driver} {role} {joined} {rating} {rank} {actions} ); }