UNPKG

@wordpress/block-library

Version:
18 lines (17 loc) 579 B
import { jsx } from "react/jsx-runtime"; import clsx from "clsx"; import { useBlockProps, useInnerBlocksProps } from "@wordpress/block-editor"; function save({ attributes, className }) { const { fontSize, style } = attributes; const blockProps = useBlockProps.save({ className: clsx(className, { "has-custom-font-size": fontSize || style?.typography?.fontSize }) }); const innerBlocksProps = useInnerBlocksProps.save(blockProps); return /* @__PURE__ */ jsx("div", { ...innerBlocksProps }); } export { save as default }; //# sourceMappingURL=save.js.map