@wordpress/block-library
Version:
Block library for the WordPress editor.
21 lines (20 loc) • 821 B
JavaScript
;
Object.defineProperties(exports, {
__esModule: { value: true },
[Symbol.toStringTag]: { value: "Module" }
});
let _wordpress_block_editor = require("@wordpress/block-editor");
let __utils_js = require("./utils.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
// packages/block-library/src/code/save.jsx
function save({ attributes }) {
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
..._wordpress_block_editor.useBlockProps.save(),
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_block_editor.RichText.Content, {
tagName: "code",
value: (0, __utils_js.escape)(typeof attributes.content === "string" ? attributes.content : attributes.content.toHTMLString({ preserveWhiteSpace: true }))
})
});
}
exports.default = save;
//# sourceMappingURL=save.cjs.map