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