import { RaceSummary } from '@/ui/RaceSummary';
import { DateDisplay } from '@/lib/display-objects/DateDisplay';
import React from 'react';

interface RaceSummaryItemProps {
  track: string;
  meta: string;
  date: Date;
}

export function RaceSummaryItem({ track, meta, date }: RaceSummaryItemProps) {
  return (
    <RaceSummary
      track={track}
      meta={meta}
      date={DateDisplay.formatShort(date)}
    />
  );
}
