UNPKG

@wordpress/block-library

Version:
16 lines (15 loc) 547 B
// packages/block-library/src/verse/save.js import clsx from "clsx"; import { RichText, useBlockProps } from "@wordpress/block-editor"; import { jsx } from "react/jsx-runtime"; function save({ attributes }) { const { textAlign, content } = attributes; const className = clsx({ [`has-text-align-${textAlign}`]: textAlign }); return /* @__PURE__ */ jsx("pre", { ...useBlockProps.save({ className }), children: /* @__PURE__ */ jsx(RichText.Content, { value: content }) }); } export { save as default }; //# sourceMappingURL=save.js.map