"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("react"),e=require("../constants.js");exports.useRadiusDragEnd=function(n,u,t,i,c,s){return r.useCallback((function(){var r=n.current;if("none"!==r){if("drawing"===r&&u.current){var a,o=null!==(a=t.current)&&void 0!==a?a:e.MapConfig.Radius.Min;return n.current="none",c(!1),void s({phase:"confirming",center:u.current,radiusMiles:o})}("resize"===r||"move"===r)&&u.current&&t.current&&(n.current="none","move"===r&&(i.current=null),c(!1),s({phase:"confirming",center:u.current,radiusMiles:t.current}))}}),[n,u,t,i,c,s])};
//# sourceMappingURL=useRadiusDragEnd.js.map
