UNPKG

@wordpress/block-library

Version:
18 lines (17 loc) • 676 B
import clsx from "clsx"; import { InnerBlocks, RichText, useBlockProps } from "@wordpress/block-editor"; import { jsx, jsxs } from "react/jsx-runtime"; // packages/block-library/src/quote/save.jsx function save({ attributes }) { const { textAlign, citation } = attributes; const className = clsx({ [`has-text-align-${textAlign}`]: textAlign }); return /* @__PURE__ */ jsxs("blockquote", { ...useBlockProps.save({ className }), children: [/* @__PURE__ */ jsx(InnerBlocks.Content, {}), !RichText.isEmpty(citation) && /* @__PURE__ */ jsx(RichText.Content, { tagName: "cite", value: citation })] }); } export { save as default }; //# sourceMappingURL=save.mjs.map