diff --git a/src/pages/Game.jsx b/src/pages/Game.jsx index 04f459e..9cc31b0 100644 --- a/src/pages/Game.jsx +++ b/src/pages/Game.jsx @@ -1,28 +1,29 @@ -import Menu from "../components/Menu"; -import { useWordpressData } from "../hooks/WordpressFetchData"; +import { useWordpressCustomData } from "../services/WordpressFetchData.js"; +import { useState } from "react"; + +import { GameContextProvider } from "../context/GameContext.js"; + +import Menu from "../components/ui/Menu.jsx"; +import GameContainer from "../components/game/GameContainer.jsx"; + +import Tutorial from "../components/game/Tutorial.jsx"; +import Logo from "../components/ui/Logo.jsx"; +import GameModal from "../components/game/GameModal.jsx"; export default function Game() { - const screenData = useWordpressData("/search-and-find"); - if (!screenData) return; - console.log(screenData[0]); - return ( -
-
- -
helloo
-
-

{screenData[0].title.rendered}

- {screenData &&

{screenData[0].title.rendered}

} - {screenData && ( -
- )} -
+ <> +
+ +
+ + {/* */} + + + +
+
-
+ ); }