Files
gridpilot.gg/apps/website/lib/display-objects/LeagueCreationStatusDisplay.ts
Marc Mintel d97f50ed72
Some checks failed
Contract Testing / contract-tests (pull_request) Failing after 6m4s
Contract Testing / contract-snapshot (pull_request) Has been skipped
view data fixes
2026-01-23 11:59:49 +01:00

15 lines
370 B
TypeScript

/**
* LeagueCreationStatusDisplay
*
* Deterministic mapping of league creation status to display messages.
*/
export class LeagueCreationStatusDisplay {
/**
* Maps league creation success status to display message.
*/
static statusMessage(success: boolean): string {
return success ? 'League created successfully!' : 'Failed to create league.';
}
}