2022-11-24 09:22:37 +01:00
|
|
|
import React, { useState } from "react"
|
|
|
|
import { Game } from "./components/Game";
|
|
|
|
import { Intro } from "./components/Intro";
|
|
|
|
import './styles/main.css'
|
2022-10-31 12:09:06 +01:00
|
|
|
|
|
|
|
export default function App() {
|
|
|
|
const [show, setShow] = useState(false);
|
|
|
|
const [seconds, setSeconds] = useState(30);
|
|
|
|
|
|
|
|
if (show) {
|
|
|
|
return <Game
|
|
|
|
setShow={setShow}
|
|
|
|
seconds={seconds}
|
|
|
|
setSeconds={setSeconds}
|
|
|
|
/>
|
|
|
|
}
|
|
|
|
return <Intro setSeconds={setSeconds} setShow={setShow}/>
|
|
|
|
}
|