import type { SupportedGame } from "../../types/game";
import { EamuseImportInfo } from "../../types/constants";
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 your e-amusement account
{EamuseImportInfo["dancearound"] ? (
Navigate to your{" "}
Dance aROUND score data page
{" "}
Dance aROUND score data page
) : (
Navigate to your Dance aROUND score data page
)}
{EamuseImportInfo["dancearound"] ? (
Install the userscript to your browser (use an extension such
as Tampermonkey)
) : (
Scrape the data using any method of your choice and translate
it into a Mirage Dance aROUND compatible JSON format
)}
Upload the resulting JSON file into Mirage using the Batch-Manual Upload functionality
Verify that all data has been imported correctly
{/* Additional Info */}
{/* Actions */}
Got it
);
};
export default DanceAroundModal;