UNPKG

@wordpress/block-library

Version:
18 lines (17 loc) 504 B
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