import type { Presenter } from '@core/shared/presentation/Presenter';

export interface RaceViewModel {
  id: string;
  name: string;
  date: string;
  leagueName?: string;
}

export interface AllRacesPageViewModel {
  races: RaceViewModel[];
  totalCount: number;
}

export interface GetAllRacesResultDTO {
  races: RaceViewModel[];
  totalCount: number;
}

export interface IGetAllRacesPresenter extends Presenter<GetAllRacesResultDTO, AllRacesPageViewModel> {}