From d1c615426f8e629995643f17b81b913446866db4 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 13 Feb 2024 19:23:25 +0100 Subject: [PATCH] introducing tutorial component --- src/components/game/Tutorial.jsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/components/game/Tutorial.jsx diff --git a/src/components/game/Tutorial.jsx b/src/components/game/Tutorial.jsx new file mode 100644 index 0000000..96535ff --- /dev/null +++ b/src/components/game/Tutorial.jsx @@ -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 ( +
+ {" "} + { + setHasCheckedTutorial(true); + setIsTimeRuning(true); + }}> + Tutorial + +
+ ); +}