import { useBlockProps, useInnerBlocksProps } from '@wordpress/block-editor'; import CommentsInspectorControls from './comments-inspector-controls'; import CommentsLegacy from './comments-legacy'; import type { CommentsEditProps } from '../types'; export default function CommentsEdit( props: CommentsEditProps ) { const { attributes, setAttributes, clientId } = props; const { tagName: TagName, legacy } = attributes; const blockProps = useBlockProps(); const innerBlocksProps = useInnerBlocksProps( blockProps ); if ( legacy ) { return ; } return ( <> ); }