@wordpress/block-library
Version:
Block library for the WordPress editor.
18 lines (17 loc) • 618 B
JavaScript
;
Object.defineProperties(exports, {
__esModule: { value: true },
[Symbol.toStringTag]: { value: "Module" }
});
let _wordpress_blocks = require("@wordpress/blocks");
// packages/block-library/src/post-comments-count/transforms.js
const transforms = { to: [{
type: "block",
blocks: ["core/post-comments-link"],
transform: ({ style }) => {
const textAlign = style?.typography?.textAlign;
return (0, _wordpress_blocks.createBlock)("core/post-comments-link", { ...textAlign && { style: { typography: { textAlign } } } });
}
}] };
exports.default = transforms;
//# sourceMappingURL=transforms.cjs.map