woocommerce/plugins/woocommerce-blocks/assets/js/blocks/order-confirmation/additional-fields/index.tsx

30 lines
465 B
TypeScript
Raw Normal View History

/**
* External dependencies
*/
import { registerBlockType } from '@wordpress/blocks';
import { Icon, info } from '@wordpress/icons';
/**
* Internal dependencies
*/
import metadata from './block.json';
import edit from './edit';
registerBlockType( metadata, {
icon: {
src: (
<Icon
icon={ info }
className="wc-block-editor-components-block-icon"
/>
),
},
attributes: {
...metadata.attributes,
},
edit,
save() {
return null;
},
} );