do to formatters
This commit is contained in:
14
apps/website/lib/formatters/LeagueCreationStatusFormatter.ts
Normal file
14
apps/website/lib/formatters/LeagueCreationStatusFormatter.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* LeagueCreationStatusDisplay
|
||||
*
|
||||
* Deterministic mapping of league creation status to display messages.
|
||||
*/
|
||||
|
||||
export class LeagueCreationStatusFormatter {
|
||||
/**
|
||||
* Maps league creation success status to display message.
|
||||
*/
|
||||
static statusMessage(success: boolean): string {
|
||||
return success ? 'League created successfully!' : 'Failed to create league.';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user