woocommerce/plugins/woocommerce-blocks/assets/js/blocks/checkout/inner-blocks/checkout-shipping-method-block/index.tsx

26 lines
513 B
TypeScript
Raw Normal View History

2022-10-04 12:02:28 +00:00
/**
* External dependencies
*/
import { Icon, shipping } from '@wordpress/icons';
import { registerExperimentalBlockType } from '@woocommerce/block-settings';
/**
* Internal dependencies
*/
import { Edit, Save } from './edit';
import attributes from './attributes';
registerExperimentalBlockType( 'woocommerce/checkout-shipping-method-block', {
2022-10-04 12:02:28 +00:00
icon: {
src: (
<Icon
icon={ shipping }
className="wc-block-editor-components-block-icon"
/>
),
},
attributes,
edit: Edit,
save: Save,
} );