@wordpress/block-library
Version:
Block library for the WordPress editor.
19 lines (18 loc) • 502 B
JavaScript
import { jsx } from "react/jsx-runtime";
import { InnerBlocks, useBlockProps } from "@wordpress/block-editor";
function save({ attributes }) {
const blockProps = useBlockProps.save();
const { submissionMethod } = attributes;
return /* @__PURE__ */ jsx(
"form",
{
...blockProps,
encType: submissionMethod === "email" ? "text/plain" : null,
children: /* @__PURE__ */ jsx(InnerBlocks.Content, {})
}
);
}
export {
save as default
};
//# sourceMappingURL=save.js.map