From df79d68cb3cbec15e985fed8c0cabc484ef55e35 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 6 Jul 2025 15:02:14 -0700 Subject: move filter option configuration to constants.ts --- frontend/src/types/constants.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'frontend/src/types') diff --git a/frontend/src/types/constants.ts b/frontend/src/types/constants.ts index 3f2c97b..1e44b21 100644 --- a/frontend/src/types/constants.ts +++ b/frontend/src/types/constants.ts @@ -3,3 +3,20 @@ export const EamuseImportInfo: Record = { scorePage: "https://p.eagate.573.jp/game/dan/1st/playdata/entrance.html#music_data", }, }; + +export function getFilterOptions(game: string): { value: string; label: string }[] { + switch (game) { + case "dancerush": + return [ + { value: "timestamp", label: "Recent" }, + { value: "score", label: "Score" }, + { value: "lamp", label: "Rank" }, + { value: "lamp_diff", label: "Difficulty"} + ]; + default: + return [ + { value: "timestamp", label: "Recent" }, + { value: "score", label: "Score" }, + ]; + } +} -- cgit v1.2.3