import r from"@babel/runtime/helpers/slicedToArray";import{useState as e,useEffect as t}from"react";var n=function(n){var o=n.searchText,u=n.filters,i=e((function(){return o.trim().toLowerCase()})),c=r(i,2),a=c[0],f=c[1],m=e(u),s=r(m,2),l=s[0],T=s[1];return t((function(){var r=setTimeout((function(){T(u)}),500);return function(){return clearTimeout(r)}}),[u]),t((function(){var r=setTimeout((function(){f(o.trim().toLowerCase())}),300);return function(){return clearTimeout(r)}}),[o]),{debouncedSearchText:a,debouncedFilters:l}};export{n as useDebouncedValues};
//# sourceMappingURL=useDebouncedValues.js.map
