"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("react"),r=require("../../types.js"),n=require("../utils.js"),o=require("./sharedHooks.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=u(e);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){a.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}exports.useUpdateTemplateIcon=function(){var e=o.useGet("get"),u=o.useGet("set");return t.useCallback((function(t,o){return n.updateTemplate(e,u,t,(function(e){return{metadata:i(i({},e.metadata),o)}}),r.Action.UpdateMetadata)}),[e,u])};
//# sourceMappingURL=useUpdateTemplateIcon.js.map
