@wordpress/block-library
Version:
Block library for the WordPress editor.
13 lines (12 loc) • 468 B
JavaScript
import { createBlock } from "@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 createBlock("core/post-comments-link", { ...textAlign && { style: { typography: { textAlign } } } });
}
}] };
export { transforms as default };
//# sourceMappingURL=transforms.mjs.map