deprecated
2 months ago
block.json
1 month ago
edit.js
2 months ago
icon.svg
2 months ago
index.js
2 months ago
index.php
2 months ago
save.js
2 months ago
index.js
31 lines
| 1 | /** |
| 2 | * FAQ Answer Block |
| 3 | */ |
| 4 | import { content } from '../../utils/example-data'; |
| 5 | import { ReactComponent as Icon } from './icon.svg'; |
| 6 | import edit from './edit'; |
| 7 | import metadata from './block.json'; |
| 8 | import save from './save'; |
| 9 | import deprecated from './deprecated/index'; |
| 10 | |
| 11 | const { name } = metadata; |
| 12 | |
| 13 | export { metadata, name }; |
| 14 | |
| 15 | export const settings = { |
| 16 | icon: <Icon />, |
| 17 | example: { |
| 18 | innerBlocks: [ |
| 19 | { |
| 20 | name: 'core/paragraph', |
| 21 | attributes: { |
| 22 | content, |
| 23 | }, |
| 24 | }, |
| 25 | ], |
| 26 | }, |
| 27 | edit, |
| 28 | save, |
| 29 | deprecated, |
| 30 | }; |
| 31 |