@wordpress/block-library
Version:
Block library for the WordPress editor.
15 lines (14 loc) • 640 B
JavaScript
;
Object.defineProperties(exports, {
__esModule: { value: true },
[Symbol.toStringTag]: { value: "Module" }
});
let _wordpress_element = require("@wordpress/element");
let react_jsx_runtime = require("react/jsx-runtime");
// packages/block-library/src/more/save.jsx
function save({ attributes: { customText, noTeaser } }) {
const moreTag = customText ? `<!--more ${customText}-->` : "<!--more-->";
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_element.RawHTML, { children: [moreTag, noTeaser ? "<!--noteaser-->" : ""].filter(Boolean).join("\n") });
}
exports.default = save;
//# sourceMappingURL=save.cjs.map