mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Player: pass functions to the InbutBox
This commit is contained in:
parent
2b344f7cd9
commit
4173349481
5 changed files with 51 additions and 9 deletions
|
|
@ -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>)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue