mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
30 lines
600 B
JavaScript
30 lines
600 B
JavaScript
import { Link } from 'wouter-preact'
|
|
|
|
const fail = (details) => (
|
|
<div className='status fail'>
|
|
<h1>
|
|
Error
|
|
</h1>
|
|
{details.map((x) => (<p key={x}>{x}</p>))}
|
|
<hr />
|
|
<Link href='/'>
|
|
Home
|
|
</Link>
|
|
|
|
|
<a
|
|
target='_blank'
|
|
rel='noopener noreferrer'
|
|
href='https://github.com/He4eT/elseifplayer/issues'>
|
|
Report bug
|
|
</a>
|
|
</div>
|
|
)
|
|
|
|
const loading = (details) => (
|
|
<div className='status loading'>
|
|
{details.map((x) => (<div key={x}>{x}</div>))}
|
|
</div>
|
|
)
|
|
|
|
export default ({ stage, details }) =>
|
|
({ fail, loading })[stage](details)
|