diff options
Diffstat (limited to 'site/src/utils.ts')
| -rw-r--r-- | site/src/utils.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/site/src/utils.ts b/site/src/utils.ts new file mode 100644 index 0000000..e523f5c --- /dev/null +++ b/site/src/utils.ts @@ -0,0 +1,10 @@ +export const getGameTitle = (gameId: string) => { + if (!gameId) return null; + + if (gameId.startsWith("sdvx")) return "SOUND VOLTEX"; + if (gameId.startsWith("iidx")) return "beatmania IIDX"; + if (gameId.startsWith("chunithm_jp")) return "CHUNITHM (JAPAN)"; + if (gameId.startsWith("maimaidx_jp")) return "maimai DX (JAPAN)"; + + return gameId.toUpperCase(); +}; |
