/** * WordPress dependencies. */ import { ExternalLink, TextareaControl, PanelBody, RangeControl, } from '@wordpress/components'; import { InspectorControls } from '@wordpress/block-editor'; import { _x } from '@wordpress/i18n'; import type { BlockEditProps } from '@wordpress/blocks'; /** * Internal dependencies. */ import { Attributes } from './types'; export const Inspector = ( { attributes: { afterAlt, beforeAlt, dividerLocation }, setAttributes, }: BlockEditProps< Attributes > ): JSX.Element => ( setAttributes( { dividerLocation: value } ) } min={ 1 } max={ 99 } /> setAttributes( { beforeAlt: value } ) } /> setAttributes( { afterAlt: value } ) } __nextHasNoMarginBottom help={ <> { _x( 'Describe the purpose of the images', 'user', 'nelio-compare-images' ) } { _x( 'Leave empty if they’re purely decorative.', 'user', 'nelio-compare-images' ) } } /> );