"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),a=require("react"),n=require("../effects/useGradientStorage.js"),r=require("../GradientManager.js");exports.GradientManagerWithStorage=function(i){var s=i.storageConfig,d=e.__rest(i,["storageConfig"]),g=n.useGradientStorage(s),o=a.useCallback((function(e){g.setGradients(e),d.onGradientsChange&&d.onGradientsChange(e)}),[g.setGradients,d.onGradientsChange]),u=a.useCallback((function(e){g.setIsEditing(e),d.onGradientEditStateChange&&d.onGradientEditStateChange(e)}),[g.setIsEditing,d.onGradientEditStateChange]);return t.jsx(r.GradientManager,e.__assign({},d,{disableGradientsManagement:g.isLoading||d.disableGradientsManagement,gradients:g.gradients,onGradientsChange:o,onGradientEditStateChange:u}))};
