components
1 year ago
block.json
1 year ago
edit.js
1 year ago
index.js
1 year ago
save.js
1 year ago
index.js
14 lines
| 1 | import { registerBlockType } from '@wordpress/blocks'; |
| 2 | import { Edit } from './edit'; |
| 3 | import metadata from './block.json'; |
| 4 | import { Save } from './save'; |
| 5 | import getIcon from '@utils/get-icon'; |
| 6 | |
| 7 | const icon = getIcon( 'pagination' ); |
| 8 | |
| 9 | registerBlockType( metadata, { |
| 10 | edit: Edit, |
| 11 | save: Save, |
| 12 | icon, |
| 13 | } ); |
| 14 |