diff --git a/packages/block-library/src/post-comments-form/form.js b/packages/block-library/src/post-comments-form/form.js
index 20f0ebca61ead6..269c0e136c5f7c 100644
--- a/packages/block-library/src/post-comments-form/form.js
+++ b/packages/block-library/src/post-comments-form/form.js
@@ -6,13 +6,12 @@ import clsx from 'clsx';
/**
* WordPress dependencies
*/
-import { __, _x, sprintf } from '@wordpress/i18n';
+import { __, sprintf } from '@wordpress/i18n';
import {
Warning,
store as blockEditorStore,
__experimentalGetElementClassName,
} from '@wordpress/block-editor';
-import { Button } from '@wordpress/components';
import { useInstanceId } from '@wordpress/compose';
import { useEntityProp, store as coreStore } from '@wordpress/core-data';
import { useSelect } from '@wordpress/data';
@@ -59,7 +58,7 @@ const CommentsFormPlaceholder = () => {
};
const CommentsForm = ( { postId, postType } ) => {
- const [ commentStatus, setCommentStatus ] = useEntityProp(
+ const [ commentStatus ] = useEntityProp(
'postType',
postType,
'comment_status',
@@ -82,21 +81,8 @@ const CommentsForm = ( { postId, postType } ) => {
if ( ! isSiteEditor && 'open' !== commentStatus ) {
if ( 'closed' === commentStatus ) {
- const actions = [
- ,
- ];
return (
-
+
{ __(
'Post Comments Form block: Comments are not enabled for this item.'
) }