import type { AllTeamsDto } from '../dtos';
import { TeamSummaryViewModel } from '../view-models';

/**
 * Team List Presenter
 * Transforms AllTeamsDto to array of TeamSummaryViewModel
 */
export class TeamListPresenter {
  present(dto: AllTeamsDto): TeamSummaryViewModel[] {
    return dto.teams.map(team => new TeamSummaryViewModel(team));
  }
}