Skip to content

Commit a191dad

Browse files
committed
feat: game code labels for forms
1 parent 7bb4def commit a191dad

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* Map of game codes to their user-friendly game instance labels.
3+
*/
4+
export const GameCodeLabels: Record<string, string> = {
5+
DR: 'Prime',
6+
DRX: 'Platinum',
7+
DRF: 'Fallen',
8+
DRT: 'Test',
9+
DRD: 'Development',
10+
};
11+
12+
/**
13+
* An array of label-value pairs to power HTML select inputs.
14+
*/
15+
export const GameCodeSelectOptions: Array<{
16+
/**
17+
* User-friendly label for the game instance.
18+
* Example: 'Prime'
19+
*/
20+
label: string;
21+
/**
22+
* Game code for the game instance.
23+
* Example: 'DR'
24+
*/
25+
value: string;
26+
}> = Object.entries(GameCodeLabels).map(([gameCode, label]) => {
27+
return {
28+
label,
29+
value: gameCode,
30+
};
31+
});

0 commit comments

Comments
 (0)