woocommerce/plugins/woocommerce-blocks/assets/js/blocks/cart/inner-blocks/cart-accepted-payment-metho.../index.tsx

24 lines
430 B
TypeScript

/**
* External dependencies
*/
import { registerBlockType } from '@wordpress/blocks';
import { Icon, payment } from '@wordpress/icons';
/**
* Internal dependencies
*/
import { Edit, Save } from './edit';
registerBlockType( 'woocommerce/cart-accepted-payment-methods-block', {
icon: {
src: (
<Icon
icon={ payment }
className="wc-block-editor-components-block-icon"
/>
),
},
edit: Edit,
save: Save,
} );