@wordpress/block-library
Version:
Block library for the WordPress editor.
18 lines (17 loc) • 579 B
JavaScript
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