diff --git a/client/src/pages/Home/components/Dialog/Dialog.jsx b/client/src/pages/Home/components/Dialog/Dialog.jsx new file mode 100644 index 0000000..2d0db84 --- /dev/null +++ b/client/src/pages/Home/components/Dialog/Dialog.jsx @@ -0,0 +1,34 @@ +import "./styles.sass"; +import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; +import {faGear, faXmark} from "@fortawesome/free-solid-svg-icons"; +import {useContext} from "react"; +import {SettingsContext} from "@/common/contexts/SettingsProvider.jsx"; + +export const Dialog = ({onClose}) => { + + const {rounds, updateRounds} = useContext(SettingsContext); + + return ( + <> +
+
+
+ +

Spieleinstellungen

+
+ +
+
+ +
+

Runden

+ updateRounds(parseInt(e.target.value))} /> +
+ +
+
+
+ + ) +} \ No newline at end of file