import React, { useState } from "react"; import { usePlayButtonStore } from "../../../store/usePlayButtonStore"; import useModuleStore from "../../../store/useModuleStore"; import { PlayIcon } from "../../icons/ShortcutIcons"; import InputToggle from "../../ui/inputs/InputToggle"; import { EyeCloseIcon, WalkIcon } from "../../icons/ExportCommonIcons"; import { ExitIcon } from "../../icons/SimulationIcons"; const ControlsPlayer = () => { const { setIsPlaying } = usePlayButtonStore(); const { activeModule } = useModuleStore(); const [walkMode, setWalkMode] = useState(false); const [hidePlayer, setHidePlayer] = useState(false); const changeCamMode = () => { setWalkMode(!walkMode); console.log("switch camera mode to first person"); }; return (
{!hidePlayer && (
Running {activeModule}...
)}
{!hidePlayer && (
)}
); }; export default ControlsPlayer;