import React from 'react'; import { ChevronRight } from 'lucide-react'; import { Box } from './Box'; import { Stack } from './Stack'; import { Text } from './Text'; import { Icon } from './Icon'; interface SidebarRaceItemProps { race: { id: string; track: string; scheduledAt: string; }; onClick?: () => void; className?: string; } export function SidebarRaceItem({ race, onClick, className }: SidebarRaceItemProps) { const scheduledAtDate = new Date(race.scheduledAt); return ( {scheduledAtDate.getDate()} {race.track} {scheduledAtDate.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })} ); }