@wordpress/block-library
Version:
Block library for the WordPress editor.
27 lines (25 loc) • 676 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = save;
var _blockEditor = require("@wordpress/block-editor");
var _jsxRuntime = require("react/jsx-runtime");
/**
* WordPress dependencies
*/
function save({
attributes
}) {
const blockProps = _blockEditor.useBlockProps.save();
const {
submissionMethod
} = attributes;
return /*#__PURE__*/(0, _jsxRuntime.jsx)("form", {
...blockProps,
className: "wp-block-form",
encType: submissionMethod === 'email' ? 'text/plain' : null,
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.InnerBlocks.Content, {})
});
}
//# sourceMappingURL=save.js.map
;