@wordpress/block-library
Version:
Block library for the WordPress editor.
18 lines (17 loc) • 504 B
JavaScript
import { createElement } from "@wordpress/element";
/**
* WordPress dependencies
*/
import { RawHTML } from '@wordpress/element';
export default function save(_ref) {
let {
attributes: {
customText,
noTeaser
}
} = _ref;
const moreTag = customText ? `<!--more ${customText}-->` : '<!--more-->';
const noTeaserTag = noTeaser ? '<!--noteaser-->' : '';
return createElement(RawHTML, null, [moreTag, noTeaserTag].filter(Boolean).join('\n'));
}
//# sourceMappingURL=save.js.map