import clsx from 'clsx';
import {
AlignmentControl,
BlockControls,
Warning,
useBlockProps,
} from '@wordpress/block-editor';
import { __ } from '@wordpress/i18n';
import { Button } from '@wordpress/components';
import Placeholder from './placeholder';
import type { CommentsEditProps } from '../types';
export default function CommentsLegacy( {
attributes,
setAttributes,
context: { postType, postId },
}: CommentsEditProps ) {
const { textAlign } = attributes;
const actions = [
,
];
const blockProps = useBlockProps( {
className: clsx( {
[ `has-text-align-${ textAlign }` ]: textAlign,
} ),
} );
return (
<>