@wordpress/block-library
Version:
Block library for the WordPress editor.
34 lines (29 loc) • 635 B
JavaScript
/**
* WordPress dependencies
*/
import { _x } from '@wordpress/i18n';
import { useBlockProps } from '@wordpress/block-editor';
/**
* Internal dependencies
*/
import useDeprecatedTextAlign from '../utils/deprecated-text-align-attributes';
function Edit( props ) {
useDeprecatedTextAlign( props );
const blockProps = useBlockProps();
return (
<>
<div { ...blockProps }>
<a
href="#comment-reply-pseudo-link"
onClick={ ( event ) => event.preventDefault() }
>
{
/* translators: Comment reply button text. */
_x( 'Reply', 'verb' )
}
</a>
</div>
</>
);
}
export default Edit;