Rearrange components

This commit is contained in:
He4eT 2021-03-02 16:48:24 +05:00
commit 90f630f277
13 changed files with 10 additions and 8 deletions

View file

@ -0,0 +1,16 @@
import { h } from 'preact'
export default function ({ themeEngine }) {
const options = themeEngine.themes.map(theme => (
<option value={theme}>
{theme}
</option>))
return (
<select
value={themeEngine.currentTheme}
onChange={({ target }) =>
themeEngine.setTheme(target.value)}>
{options}
</select>)
}