@wordpress/block-library
Version:
Block library for the WordPress editor.
19 lines • 380 B
JavaScript
/**
* WordPress dependencies
*/
import { createBlock } from '@wordpress/blocks';
const transforms = {
to: [{
type: 'block',
blocks: ['core/post-comments-link'],
transform: ({
textAlign
}) => {
return createBlock('core/post-comments-link', {
textAlign
});
}
}]
};
export default transforms;
//# sourceMappingURL=transforms.js.map