Files
gridpilot.gg/apps/website/lib/presenters/LeagueStandingsPresenter.ts
2025-12-17 18:01:47 +01:00

6 lines
362 B
TypeScript

import { LeagueStandingsDto, StandingEntryDto } from '../dtos';
import { LeagueStandingsViewModel } from '../view-models';
export const presentLeagueStandings = (dto: LeagueStandingsDto, currentUserId: string, previousStandings?: StandingEntryDto[]): LeagueStandingsViewModel => {
return new LeagueStandingsViewModel(dto, currentUserId, previousStandings);
};