"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=r(e);exports.useDebounce=function(e,r){var n=t.useState(e),o=u.default(n,2),i=o[0],a=o[1];return t.useEffect((function(){var t=setTimeout((function(){a(e)}),r);return function(){clearTimeout(t)}}),[e,r]),i};
