woocommerce/plugins/woocommerce-blocks/assets/js/blocks/order-confirmation/status/edit.tsx

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;