mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Add status component
This commit is contained in:
parent
97cd8aca9e
commit
f02ec6925f
7 changed files with 66 additions and 21 deletions
|
|
@ -9,12 +9,13 @@ import CheapGlkOte from 'cheap-glkote'
|
|||
|
||||
import TextBuffer from './TextBuffer'
|
||||
import InputBox from './InputBox'
|
||||
import Status from './Status'
|
||||
|
||||
import './player.css'
|
||||
|
||||
const INITIAL_STATUS = {
|
||||
stage: 'loading',
|
||||
details: 'Preparing...'
|
||||
details: ['Preparing']
|
||||
}
|
||||
|
||||
const runMachine = ({ Engine, file, handlers }) => {
|
||||
|
|
@ -104,7 +105,7 @@ export default function ({ vmParts: { file, engine } }) {
|
|||
}, [vm])
|
||||
|
||||
return status.stage !== 'ready'
|
||||
? (<div>{status.details}</div>)
|
||||
? (<Status {...status} />)
|
||||
: (
|
||||
<section className='ifplayer'>
|
||||
<TextBuffer {...{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue