"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),n=require("./useLassoDrawActions.js");exports.useLassoConfirmCancel=function(s,a,r,t,o,u,i,l,c,f,p,d){return{confirm:e.useCallback((function(){"confirming"===s.phase&&a&&(null==t||t(r.map((function(e){return e.id}))),n.resetLassoDrawState(u,c,f,p,d),i({phase:"idle"}),l("none"),null==o||o())}),[s.phase,a,r,t,i,l,o,u,c,f,p,d]),cancel:e.useCallback((function(){n.resetLassoDrawState(u,c,f,p,d),i({phase:"idle"}),l("none"),null==o||o()}),[i,l,o,u,c,f,p,d])}};
//# sourceMappingURL=useLassoConfirmCancel.js.map
