woocommerce/plugins/woocommerce-blocks/assets/js/blocks/order-confirmation/shipping-address/index.tsx

34 lines
607 B
TypeScript

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