// src/gmbreviews/edit.js import { useBlockProps, InspectorControls } from '@wordpress/block-editor'; import { PanelBody, RangeControl, ToggleControl } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import ServerSideRender from '@wordpress/server-side-render'; export default function Edit({ attributes, setAttributes }) { const blockProps = useBlockProps(); const { count, inheritUser, showStats, minStars, showViewAllLink, showRating, showDate, showReviewLink } = attributes; return ( <> setAttributes({ inheritUser: value })} /> setAttributes({ count: value })} min={1} max={20} /> setAttributes({ showRating: value })} /> setAttributes({ showDate: value })} /> setAttributes({ showReviewLink: value })} /> setAttributes({ showStats: value })} /> setAttributes({ showViewAllLink: value })} /> setAttributes({ minStars: value })} min={1} max={5} />
); }