introducing tutorial component

This commit is contained in:
Antoine M 2024-02-13 19:23:25 +01:00
parent 3b32f6d5af
commit d1c615426f

View File

@ -0,0 +1,20 @@
import React from "react";
import Modal from "../../components/ui/Modal.jsx";
import { useGame } from "../../hooks/useGame.jsx";
export default function Tutorial() {
const { hasCheckedTutorial, setHasCheckedTutorial, setIsTimeRuning } = useGame();
return (
<div>
{" "}
<Modal
open={!hasCheckedTutorial}
onClose={() => {
setHasCheckedTutorial(true);
setIsTimeRuning(true);
}}>
Tutorial
</Modal>
</div>
);
}