2023-01-18 12:40:30 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { useBlockProps } from '@wordpress/block-editor';
|
|
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
import { Notice } from '@wordpress/components';
|
|
|
|
|
2023-01-25 14:29:17 +00:00
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import './editor.scss';
|
|
|
|
|
2023-01-18 12:40:30 +00:00
|
|
|
const Edit = (): JSX.Element => {
|
|
|
|
const blockProps = useBlockProps( {
|
|
|
|
className: 'wc-block-store-notices',
|
|
|
|
} );
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div { ...blockProps }>
|
|
|
|
<Notice status="info" isDismissible={ false }>
|
|
|
|
{ __(
|
|
|
|
'Notices added by WooCommerce or extensions will show up here.',
|
|
|
|
'woo-gutenberg-products-block'
|
|
|
|
) }
|
|
|
|
</Notice>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Edit;
|