UNPKG

@wordpress/block-library

Version:
33 lines (32 loc) 748 B
import { jsx } from "react/jsx-runtime"; import { __ } from "@wordpress/i18n"; import { useBlockProps, useInnerBlocksProps } from "@wordpress/block-editor"; const TEMPLATE = [ [ "core/buttons", {}, [ [ "core/button", { text: __("Submit"), tagName: "button", type: "submit" } ] ] ] ]; const Edit = () => { const blockProps = useBlockProps(); const innerBlocksProps = useInnerBlocksProps(blockProps, { template: TEMPLATE, templateLock: "all" }); return /* @__PURE__ */ jsx("div", { className: "wp-block-form-submit-wrapper", ...innerBlocksProps }); }; var edit_default = Edit; export { edit_default as default }; //# sourceMappingURL=edit.js.map