diff --git a/src/components/game/GameModal.jsx b/src/components/game/GameModal.jsx new file mode 100644 index 0000000..046e0d4 --- /dev/null +++ b/src/components/game/GameModal.jsx @@ -0,0 +1,18 @@ +import React from "react"; +import { useGame } from "../../hooks/useGame"; +import Modal from "../../components/ui/Modal.jsx"; + +export default function GameModal() { + const { currentGameModal, setCurrentGameModal } = useGame(); + if (!currentGameModal) return null; + + return ( + setCurrentGameModal(null)}> + + + {currentGameModal} + + ); +}