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

30 lines
507 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.',
'woo-gutenberg-products-block'
) }
</p>
</div>
);
};
export default Edit;