import r from"@babel/runtime/helpers/defineProperty";import{useCallback as t,useContext as n}from"react";import{useStore as o}from"zustand";import{StoreContext as e}from"../../utils.js";var i=function(r){var t=n(e);if(!t)throw new Error("Missing TemplatesControl.Provider");return o(t,r)},a=function(r){return i((function(t){return t[r]}))},f=function(n){var o=i((function(r){return r.set}));return t((function(t){return o(r({},n,t))}),[n,o])},u=function(r,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=o.confirmationTargetTemplateId,i=o.confirmationTargetFolder,f=a("set");return t((function(){return f({confirmationType:r,confirmationCallback:n,confirmationTargetTemplateId:e,confirmationTargetFolder:i})}),[n,i,e,r,f])};export{u as useConfirmation,a as useGet,f as useSet};
//# sourceMappingURL=sharedHooks.js.map
