import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{k as t}from"./vendor-markdown-DngssFHR.js";var n=e(t(),1);function r(e=25){let[t,r]=(0,n.useState)(1),[i,a]=(0,n.useState)(0);return{page:t,setPage:r,total:i,setTotal:a,totalPages:Math.ceil(i/e),offset:(t-1)*e,pageSize:e}}export{r as t};