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