import type { SupportedGame } from "../../types/game"; interface DivaNetModalProps { isOpen: boolean; onClose: () => void; game: SupportedGame | undefined; renderAsCard?: () => void; } const DivaNetModal = ({ isOpen, onClose, game, renderAsCard }: DivaNetModalProps) => { if (renderAsCard) { return (

DIVA.NET Play History

Import via scraping your playdata from SEGA DIVA.NET

); } 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

Follow the instructions below to import your data

{/* Instructions */}

Instructions:

  1. Log into your DIVA.NET account
  2. Navigate to the Play History (プレイ履歴) Page
  3. Install the relevant userscript (use a browser extension like Tampermonkey)
  4. {/* Additional Info */}
  5. A button will appear on the page that you can click to start the scraping process.
  6. Upload the resulting JSON file into Mirage using the Batch-Manual Upload functionality
  7. Verify that all data has been imported correctly
{/* Actions */}
); }; export default DivaNetModal;