"use strict";var React=require("react");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),useInterval$1={},react_1=(Object.defineProperty(useInterval$1,"__esModule",{value:!0}),React__default.default),useInterval=function(e,t){var r=react_1.useRef(function(){});react_1.useEffect(function(){r.current=e}),react_1.useEffect(function(){var e;if(null!==t)return e=setInterval(function(){return r.current()},t||0),function(){return clearInterval(e)}},[t])},_default=useInterval$1.default=useInterval;exports._default=_default;
