This commit is contained in:
He4eT 2021-02-24 23:57:39 +05:00
commit 0474e0355e
6 changed files with 10 additions and 15 deletions

View file

@ -1,14 +1,14 @@
import { h } from 'preact'
import { useState, useEffect } from 'preact/hooks'
import { prepareVM } from '~/src/common/if'
import { prepareVM } from './common/if'
const INITIAL_STATUS = {
stage: 'loading',
details: 'Loading...'
}
export default function ({url}) {
export default function ({ url }) {
const [status, setStatus] = useState(INITIAL_STATUS)
const [vm, setVM] = useState(null)
@ -25,7 +25,6 @@ export default function ({url}) {
return (
<main>
{url}
{status.details}
</main>)
}