import { useState } from "react"; import { useGame } from "../../context/GameContext.js"; interface OutdatedSchemaModalProps { onDismiss: () => void; } export const OutdatedSchemaModal = ({ onDismiss }: OutdatedSchemaModalProps): React.JSX.Element => { const { resetProgress } = useGame(); const [isResetting, setIsResetting] = useState(false); const handleReset = async (): Promise => { setIsResetting(true); await resetProgress(); setIsResetting(false); }; return (

⚠️ Outdated Save Data

Your save data is from an older version of Elysium and may cause bugs or unexpected behaviour. Cloud saves are disabled until you reset your progress.

Resetting will start you fresh — all progress will be lost.

); };