import React from 'react'; import { Calendar } from 'lucide-react'; import { Box } from './Box'; import { Stack } from './Stack'; import { Text } from './Text'; import { Icon } from './Icon'; interface DateHeaderProps { label: string; count?: number; countLabel?: string; } export function DateHeader({ label, count, countLabel = 'races' }: DateHeaderProps) { return ( {label} {count !== undefined && ( {count} {count === 1 ? countLabel.replace(/s$/, '') : countLabel} )} ); }