Player: pass functions to the InbutBox

This commit is contained in:
He4eT 2023-05-29 01:02:33 +03:00 committed by Alexey
commit 4173349481
5 changed files with 51 additions and 9 deletions

View file

@ -35,7 +35,10 @@ const runMachine = ({ engine: Engine, wasmBinary, storyfile, handlers }) => {
}
export default function Player ({
vmParts: { storyfile, engine, wasmBinary }, singleWindow,
vmParts: { storyfile, engine, wasmBinary },
onFullscreenRequest,
setMenuOpen,
singleWindow,
}) {
const [status, setStatus] = useState(INITIAL_STATUS)
@ -113,6 +116,8 @@ export default function Player ({
windows,
currentWindowId,
sendMessage,
onFullscreenRequest,
setMenuOpen,
}} />
</section>)
}