1
0
Fork 0
freesewing/packages/freesewing.shared/components/theme-picker.js
2021-12-21 20:47:13 +01:00

16 lines
401 B
JavaScript

import themes from 'shared/themes/index.js'
const ThemePicker = ({ app, className='' }) => {
return (
<select
className={`select select-bordered w-full max-w-sm text-base-content ${className}`}
onChange={evt => app.setTheme(evt.target.value)}
>
{Object.keys(themes).map(theme => (
<option>{theme}</option>
))}
</select>
)
}
export default ThemePicker