import { InspectorControls, // @ts-ignore - not sure why this reports as unavailable LineHeightControl, } from "@wordpress/block-editor"; import { BaseControl, FontSizePicker, PanelBody } from "@wordpress/components"; import { __ } from "@wordpress/i18n"; import type { Attributes } from "./index.tsx"; type Props = { attributes: Attributes; setAttributes: (attributes: Partial) => void; }; export const Sidebar = ({ attributes, setAttributes }: Props) => { return ( setAttributes({ lineHeight: String(lineHeight) }) } />
{__("Tweak the font sizes if necessary.", "fit-to-width")}
setAttributes({ baseFontSize })} /> setAttributes({ maxFontSize })} />
{__( "Press the settings icon to reset the font size.", "fit-to-width", )}
); };