UNPKG

@wordpress/block-library

Version:
27 lines (25 loc) 676 B
"use strict"; 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