import type { SupportedGame } from "../../types/game";
interface DanceAroundModalProps {
isOpen: boolean;
onClose: () => void;
game: SupportedGame | undefined;
renderAsCard?: () => void;
}
const DanceAroundModal = ({
isOpen,
onClose,
game,
renderAsCard,
}: DanceAroundModalProps) => {
if (renderAsCard) {
return (
Dance aROUND e-amusement Play History
Import via scraping your Dance aROUND playdata from KONAMI e-amusement
Export e-amusement
);
}
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 Dance aROUND Data
Follow the instructions below to import your data
{/* Warning */}
{/* Instructions */}
Instructions:
Log into the{" "}
DANCE aROUND e-amusement page
Navigate to the{" "}
DANCE aROUND Play History Page
{" "}
Install the relevant userscript (use a browser extension such as{" "}
Tampermonkey )
{/* Additional Info */}
A button will appear on the page that you can click to start the scraping process.
Upload the resulting JSON file into Mirage using the
Batch-Manual Upload functionality
Verify that all data has been imported correctly
{/* Actions */}
Got it
);
};
export default DanceAroundModal;