import type {
  IDashboardOverviewPresenter,
  DashboardOverviewResultDTO,
  DashboardOverviewViewModel,
} from '@core/racing/application/presenters/IDashboardOverviewPresenter';

export class DashboardOverviewPresenter implements IDashboardOverviewPresenter {
  private viewModel: DashboardOverviewViewModel | null = null;

  reset(): void {
    this.viewModel = null;
  }

  present(dto: DashboardOverviewResultDTO): void {
    this.viewModel = dto;
  }

  getViewModel(): DashboardOverviewViewModel | null {
    return this.viewModel;
  }
}