/** * WordPress dependencies. */ const { blockEditor: { InspectorControls, }, components: { Disabled, PanelBody, RangeControl, TextControl, ToggleControl, }, element: { Fragment, createElement, }, i18n: { __, }, serverSideRender: ServerSideRender, } = wp; const editRecentPostsBlock = ( { attributes, setAttributes } ) => { const { title, maxPosts, linkTitle } = attributes; return ( { setAttributes( { title: text } ); } } /> setAttributes( { maxPosts: value } ) } min={ 1 } max={ 10 } required /> { setAttributes( { linkTitle: ! linkTitle } ); } } /> ); }; export default editRecentPostsBlock;