Files
gridpilot.gg/apps/website/lib/view-models/TeamCardViewModel.ts
2026-01-24 01:25:46 +01:00

24 lines
616 B
TypeScript

/**
* Team card view model
* UI representation of a team on the landing page.
*/
import type { TeamCardViewData } from "@/lib/view-data/TeamCardViewData";
import { ViewModel } from "../contracts/view-models/ViewModel";
export class TeamCardViewModel extends ViewModel {
readonly id: string;
readonly name: string;
readonly tag: string;
readonly description: string;
readonly logoUrl?: string;
constructor(data: TeamCardViewData) {
super();
this.id = data.id;
this.name = data.name;
this.tag = data.tag;
this.description = data.description;
this.logoUrl = data.logoUrl;
}
}