@wordpress/block-editor
Version:
12 lines (11 loc) • 428 B
JavaScript
// packages/block-editor/src/components/gradients/with-gradient.js
import { __experimentalUseGradient } from "./use-gradient";
import { jsx } from "react/jsx-runtime";
var withGradient = (WrappedComponent) => (props) => {
const { gradientValue } = __experimentalUseGradient();
return /* @__PURE__ */ jsx(WrappedComponent, { ...props, gradientValue });
};
export {
withGradient
};
//# sourceMappingURL=with-gradient.js.map