introducing tutorial component
This commit is contained in:
parent
3b32f6d5af
commit
d1c615426f
20
src/components/game/Tutorial.jsx
Normal file
20
src/components/game/Tutorial.jsx
Normal 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>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user