mirror of
https://github.com/dsoaress/link-free.git
synced 2026-08-17 06:56:04 +01:00
25 lines
571 B
TypeScript
25 lines
571 B
TypeScript
import { useData } from '../../../hooks/useData'
|
|
|
|
export function FontsSelect() {
|
|
const { data, setData } = useData()
|
|
|
|
return (
|
|
<select
|
|
value={data.settings.font}
|
|
onChange={e =>
|
|
setData({
|
|
...data,
|
|
settings: {
|
|
...data.settings,
|
|
font: e.target.value
|
|
}
|
|
})
|
|
}
|
|
>
|
|
<option value="'Baloo Bhaijaan 2', sans-serif">Baloo</option>
|
|
<option value="'Montserrat', sans-serif">Montserrat</option>
|
|
<option value="'Roboto', sans-serif">Roboto</option>
|
|
</select>
|
|
)
|
|
}
|