| 1 |
import { __ } from "@wordpress/i18n"; |
| 2 |
import { registerBlockType } from "@wordpress/blocks"; |
| 3 |
|
| 4 |
import Edit from "./edit"; |
| 5 |
import attributes from "./attributes"; |
| 6 |
import icon from "./icon"; |
| 7 |
|
| 8 |
registerBlockType("betterdocs/betterdocs-print", { |
| 9 |
title: __("BetterDocs Print Button", "betterdocs"), |
| 10 |
description: __( |
| 11 |
"Print Button lets your users simply just hit the button, save as PDF & print the documentation.", |
| 12 |
"betterdocs", |
| 13 |
), |
| 14 |
category: "betterdocs", |
| 15 |
attributes, |
| 16 |
icon, |
| 17 |
keywords: [ |
| 18 |
__("betterdocs", "betterdocs"), |
| 19 |
__("category box", "betterdocs"), |
| 20 |
], |
| 21 |
edit: Edit, |
| 22 |
save: () => null, |
| 23 |
example: { |
| 24 |
viewportWidth: 1200, |
| 25 |
}, |
| 26 |
}); |
| 27 |
|