import{r as e,aK as S}from"./index-Cox3ZWL0.js";const d=()=>{const[n,s]=e.useState(1),[t,o]=e.useState(""),[c,r]=e.useState([]),u=S(t,500),g=e.useCallback(a=>{r(a),s(1)},[r,s]),h=e.useCallback(a=>{o(a),s(1)},[o,s]);return e.useMemo(()=>({pageIndex:n,setPageIndex:s,search:t,debouncedSearch:u,sorting:c,searchChange:h,sortChange:g}),[u,n,t,h,g,c])};export{d as u};
