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