@wordpress/block-library
Version:
Block library for the WordPress editor.
28 lines (25 loc) • 703 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: {
tagName: Tag,
legacy
}
}) {
const blockProps = _blockEditor.useBlockProps.save();
const innerBlocksProps = _blockEditor.useInnerBlocksProps.save(blockProps);
// The legacy version is dynamic (i.e. PHP rendered) and doesn't allow inner
// blocks, so nothing is saved in that case.
return legacy ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
...innerBlocksProps
});
}
//# sourceMappingURL=save.js.map
;