"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.withGradient = void 0;
var _useGradient = require("./use-gradient");
var _jsxRuntime = require("react/jsx-runtime");
/**
 * Internal dependencies
 */

const withGradient = WrappedComponent => props => {
  const {
    gradientValue
  } = (0, _useGradient.__experimentalUseGradient)();
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(WrappedComponent, {
    ...props,
    gradientValue: gradientValue
  });
};
exports.withGradient = withGradient;
//# sourceMappingURL=with-gradient.js.map