"use client"
import{e as n,m as d}from"./chunk-LO5RKFLH.mjs";import{Fragment as p,jsx as a,jsxs as s}from"react/jsx-runtime";var l=d("flex h-7 items-center justify-center gap-2 whitespace-nowrap rounded-md border border-gray-200 bg-white px-2 text-sm text-gray-600","outline-none hover:bg-gray-50 focus-visible:border-gray-500","disabled:cursor-not-allowed disabled:border-gray-200 disabled:text-gray-400 disabled:bg-gray-100");function c({pagination:e,setPagination:i,totalCount:t,unit:r=g=>`item${g?"s":""}`,className:o,children:m}){return s("div",{className:d("flex items-center justify-between gap-2 text-sm leading-6 text-gray-600",o),children:[s("div",{className:"flex items-center gap-2",children:[s("div",{children:[a("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",t>0&&s(p,{children:[s("span",{className:"font-medium",children:[(e.pageIndex-1)*e.pageSize+1,"-",Math.min((e.pageIndex-1)*e.pageSize+e.pageSize,t)]})," ","of"," "]}),a("span",{className:"font-medium",children:n(t,{full:!0})})," ",typeof r=="function"?r(t!==1):r]}),m]}),s("div",{className:"flex items-center gap-2",children:[a("button",{type:"button",className:l,onClick:()=>i({...e,pageIndex:e.pageIndex-1}),disabled:e.pageIndex===1,children:"Previous"}),a("button",{type:"button",className:l,onClick:()=>i({...e,pageIndex:e.pageIndex+1}),disabled:(e.pageIndex-1)*e.pageSize+e.pageSize>=t,children:"Next"})]})]})}export{c as a};
