UNPKG

@wordpress/block-library

Version:
24 lines (21 loc) 565 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = save; var _element = require("@wordpress/element"); /** * WordPress dependencies */ function save(_ref) { let { attributes: { customText, noTeaser } } = _ref; const moreTag = customText ? `<!--more ${customText}-->` : '<!--more-->'; const noTeaserTag = noTeaser ? '<!--noteaser-->' : ''; return (0, _element.createElement)(_element.RawHTML, null, [moreTag, noTeaserTag].filter(Boolean).join('\n')); } //# sourceMappingURL=save.js.map