| 1 |
import { registerBlockType } from '@wordpress/blocks'; |
| 2 |
|
| 3 |
import { postIcon } from './components/icons'; |
| 4 |
import Edit from './edit'; |
| 5 |
import metadata from './block.json'; |
| 6 |
|
| 7 |
/** |
| 8 |
* Every block starts by registering a new block type definition. |
| 9 |
* |
| 10 |
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/ |
| 11 |
*/ |
| 12 |
registerBlockType(metadata.name, { |
| 13 |
...metadata, |
| 14 |
icon: postIcon, |
| 15 |
edit: Edit, |
| 16 |
}); |
| 17 |
|