Files
link-free/src/components/Dash/ButtonsStyleSelect/index.tsx
T

24 lines
568 B
TypeScript
Raw Normal View History

2021-12-15 08:11:58 -03:00
import { useData } from '../../../hooks/useData'
export function ButtonsStyleSelect() {
const { data, setData } = useData()
return (
<select
2021-12-18 00:50:54 -03:00
value={data.settings.buttonsSchema}
2021-12-15 08:11:58 -03:00
onChange={e =>
setData({
...data,
settings: {
...data.settings,
2021-12-18 00:50:54 -03:00
buttonsSchema: e.target.value as 'square' | 'rounded' | 'pill'
2021-12-15 08:11:58 -03:00
}
})
}
>
<option value="square">Square</option>
<option value="rounded">Rounded</option>
<option value="pill">Pill</option>
</select>
)
}