import { ReactNode } from 'react'; import { Box } from './Box'; import { Text } from './Text'; export interface RaceRowCellProps { children: ReactNode; label?: string; width?: string | number; align?: 'left' | 'center' | 'right'; hideOnMobile?: boolean; } export const RaceRowCell = ({ children, label, width, align = 'left', hideOnMobile = false }: RaceRowCellProps) => { const alignmentClasses = { left: 'items-start text-left', center: 'items-center text-center', right: 'items-end text-right' }[align]; return ( {label && ( {label} )} {children} ); };