30 lines
490 B
TypeScript
30 lines
490 B
TypeScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { useBlockProps } from '@wordpress/block-editor';
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import './style.scss';
|
|
|
|
const Edit = (): JSX.Element => {
|
|
const blockProps = useBlockProps( {
|
|
className: 'wc-block-order-confirmation-status',
|
|
} );
|
|
|
|
return (
|
|
<div { ...blockProps }>
|
|
<p>
|
|
{ __(
|
|
'Thank you. Your order has been received.',
|
|
'woocommerce'
|
|
) }
|
|
</p>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Edit;
|