Tearing down of old Editor (Settings) GitOrigin-RevId: d9e23e61a8e34eb22e9c9e3453a157fb275f68f0
32 lines
770 B
TypeScript
32 lines
770 B
TypeScript
import { useProjectSettingsContext } from '@/features/editor-left-menu/context/project-settings-context'
|
|
import { useTranslation } from 'react-i18next'
|
|
import DropdownSetting from '../dropdown-setting'
|
|
|
|
export default function LineHeightSetting() {
|
|
const { lineHeight, setLineHeight } = useProjectSettingsContext()
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<DropdownSetting
|
|
id="lineHeight"
|
|
label={t('editor_line_height')}
|
|
options={[
|
|
{
|
|
value: 'compact',
|
|
label: t('compact'),
|
|
},
|
|
{
|
|
value: 'normal',
|
|
label: t('normal'),
|
|
},
|
|
{
|
|
value: 'wide',
|
|
label: t('wide'),
|
|
},
|
|
]}
|
|
onChange={setLineHeight}
|
|
value={lineHeight}
|
|
/>
|
|
)
|
|
}
|