From a40442d9b71893bfbcff59b653a5513611495ff9 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 11 Nov 2025 18:15:18 -0800 Subject: move donder hiroba script to submodule --- .../components/modals/TaikoDonderHirobaModal.tsx | 99 ++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 frontend/src/components/modals/TaikoDonderHirobaModal.tsx (limited to 'frontend') diff --git a/frontend/src/components/modals/TaikoDonderHirobaModal.tsx b/frontend/src/components/modals/TaikoDonderHirobaModal.tsx new file mode 100644 index 0000000..c8f46c8 --- /dev/null +++ b/frontend/src/components/modals/TaikoDonderHirobaModal.tsx @@ -0,0 +1,99 @@ +import type { SupportedGame } from "../../types/game"; + +interface DonerHirobaModalProps { + isOpen: boolean; + onClose: () => void; + game: SupportedGame | undefined; + renderAsCard?: () => void; +} + +const TaikoDonderHirobaModal = ({ + isOpen, + onClose, + game, + renderAsCard, +}: DonerHirobaModalProps) => { + if (renderAsCard) { + return ( +
+
+ + + +
+

Donder Hiroba Import

+

+ Import Play History from Donder Hiroba +

+ +
+ ); + } + + if (!isOpen) return null; + + const handleClose = () => { + onClose(); + }; + if (game === undefined) { + return "Sorry, due to some extreme error the game you're looking for doesn't seem to exist..."; + } + return ( +
+ {/* Backdrop */} +
+ + {/* Modal */} +
+
+ {/* Header */} +
+

+ Import {game.formattedName} Data (Donder Hiroba) +

+

+ Exporting from Donder Hiroba requires slightly more setup than + other methods. Follow the instructions{" "} + + here + + . +

+
+ {/* Actions */} +
+ +
+
+
+
+ ); +}; + +export default TaikoDonderHirobaModal; -- cgit v1.2.3