/** * WordPress dependencies. */ const { blockEditor: { InspectorControls, }, components: { Disabled, PanelBody, RangeControl, SelectControl, TextControl, ToggleControl, }, element: { Fragment, createElement, }, i18n: { __, }, serverSideRender: ServerSideRender, } = wp; /** * Internal dependencies. */ import { TYPES } from './constants'; const editDynamicGroupsBlock = ( { attributes, setAttributes } ) => { const { title, maxGroups, groupDefault, linkTitle } = attributes; return ( { setAttributes( { title: text } ); } } /> setAttributes( { maxGroups: value } ) } min={ 1 } max={ 10 } required /> { setAttributes( { groupDefault: option } ); } } /> { setAttributes( { linkTitle: ! linkTitle } ); } } /> ); }; export default editDynamicGroupsBlock;