1
0
Fork 0
freesewing/packages/freesewing.shared/components/theme-picker.js
2021-12-11 14:04:05 +01:00

13 lines
337 B
JavaScript

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