mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Rearrange components
This commit is contained in:
parent
e44831db08
commit
90f630f277
13 changed files with 10 additions and 8 deletions
14
src/components/Player/TextMessage.jsx
Normal file
14
src/components/Player/TextMessage.jsx
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { h } from 'preact'
|
||||
|
||||
export default function ({ style, text }) {
|
||||
const defaultContent = (
|
||||
<span class={['message', style].join(' ')}>
|
||||
{text}
|
||||
</span>)
|
||||
|
||||
return ({
|
||||
input: (<span class='message input'>> {text}</span>),
|
||||
subheader: (<strong>{text}</strong>),
|
||||
endOfLine: (<br />)
|
||||
})[style] || defaultContent
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue