@wordpress/block-library
Version:
Block library for the WordPress editor.
33 lines (32 loc) • 748 B
JavaScript
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