import "../../scss/components/Hud.scss"; import { useWildCoin } from "../WildCoin/WildCoinContext"; import Timer from "../timer/Timer"; import propTypes from "prop-types"; function Hud({ isVisible }) { Hud.propTypes = { isVisible: propTypes.bool.isRequired, }; const { manic, snowman, bonnet, sugar, cookie, couronne, epice, biere, coffee, } = useWildCoin(); const { incrementClick, incrementPerSecond } = useWildCoin(); const hiddenDiv = isVisible ? "none" : null; return (

Temps de jeu

Auto CPS

{incrementPerSecond}

Player Click

{incrementClick}

{coffee[0] === true ? (

{coffee[1]}

) : null} {manic[0] === true ? (

{manic[1]}

) : null} {snowman[0] === true ? (

{snowman[1]}

) : null} {bonnet[0] === true ? (

{bonnet[1]}

) : null} {sugar[0] === true ? (

{sugar[1]}

) : null} {cookie[0] === true ? (

{cookie[1]}

) : null} {couronne[0] === true ? (

{couronne[1]}

) : null} {epice[0] === true ? (

{epice[1]}

) : null} {biere[0] === true ? (

{biere[1]}

) : null}
); } export default Hud;