"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),r=require("react");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);exports.useIsMapMoving=function(e){var t=r.useState(!1),u=n.default(t,2),a=u[0],i=u[1];return{isMoving:a,handleMoveStart:r.useCallback((function(){return i(!0)}),[]),handleMoveEnd:r.useCallback((function(){var r,t,n=null===(r=e.current)||void 0===r?void 0:r.getMap();i(null!==(t=null==n?void 0:n.isMoving())&&void 0!==t&&t)}),[e])}};
//# sourceMappingURL=useIsMapMoving.js.map
