@wordpress/block-library
Version:
Block library for the WordPress editor.
29 lines (27 loc) • 603 B
JavaScript
import { createElement } from "@wordpress/element";
/**
* External dependencies
*/
import classnames from 'classnames';
/**
* WordPress dependencies
*/
import { RichText, useBlockProps } from '@wordpress/block-editor';
export default function save(_ref) {
let {
attributes
} = _ref;
const {
textAlign,
content
} = attributes;
const className = classnames({
[`has-text-align-${textAlign}`]: textAlign
});
return createElement("pre", useBlockProps.save({
className
}), createElement(RichText.Content, {
value: content
}));
}
//# sourceMappingURL=save.js.map