2021-12-11 14:04:05 +01:00
|
|
|
import themes from 'shared/themes/index.js'
|
|
|
|
|
2021-12-21 20:47:13 +01:00
|
|
|
const ThemePicker = ({ app, className='' }) => {
|
2021-12-11 14:04:05 +01:00
|
|
|
return (
|
2021-12-21 20:47:13 +01:00
|
|
|
<select
|
|
|
|
className={`select select-bordered w-full max-w-sm text-base-content ${className}`}
|
|
|
|
onChange={evt => app.setTheme(evt.target.value)}
|
|
|
|
>
|
2021-12-11 14:04:05 +01:00
|
|
|
{Object.keys(themes).map(theme => (
|
|
|
|
<option>{theme}</option>
|
|
|
|
))}
|
|
|
|
</select>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ThemePicker
|