diff --git a/packages/block-library/src/post-comments-form/edit.js b/packages/block-library/src/post-comments-form/edit.js index 5fd73c11c7fdc0..fbcd99d93f3f45 100644 --- a/packages/block-library/src/post-comments-form/edit.js +++ b/packages/block-library/src/post-comments-form/edit.js @@ -14,10 +14,11 @@ import { } from '@wordpress/block-editor'; import { useEntityProp } from '@wordpress/core-data'; import { __, sprintf } from '@wordpress/i18n'; -import { - __experimentalUseDisabled as useDisabled, - useInstanceId, -} from '@wordpress/compose'; + +/** + * Internal dependencies + */ +import CommentsForm from './form'; export default function PostCommentsFormEdit( { attributes, @@ -40,10 +41,6 @@ export default function PostCommentsFormEdit( { const isInSiteEditor = postType === undefined || postId === undefined; - const disabledFormRef = useDisabled(); - - const instanceId = useInstanceId( PostCommentsFormEdit ); - return ( <> @@ -76,35 +73,7 @@ export default function PostCommentsFormEdit( { ) } { ( 'open' === commentStatus || isInSiteEditor ) && ( -
-

{ __( 'Leave a Reply' ) }

-
-

- -