woocommerce/plugins/woocommerce-blocks/assets/js/blocks/checkout/inner-blocks/checkout-pickup-options-block/index.tsx

26 lines
478 B
TypeScript
Raw Normal View History

2022-10-04 12:02:28 +00:00
/**
* External dependencies
*/
import { Icon, shipping } from '@wordpress/icons';
2022-12-21 15:38:40 +00:00
import { registerBlockType } from '@wordpress/blocks';
2022-10-04 12:02:28 +00:00
/**
* Internal dependencies
*/
import { Edit, Save } from './edit';
import attributes from './attributes';
2022-12-21 15:38:40 +00:00
registerBlockType( 'woocommerce/checkout-pickup-options-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,
} );