import{jsxs as r,jsx as s}from"react/jsx-runtime";import{B as n}from"./button-BvFBRYHq.js";import{ChevronLeft as c,ChevronRight as o}from"lucide-react";function a({data:e,onPageChange:t}){if(e.last_page<=1)return null;const i=(e.current_page-1)*e.per_page+1,l=Math.min(e.current_page*e.per_page,e.total);return r("div",{className:"flex items-center justify-between px-2 py-4",children:[r("div",{className:"text-sm text-muted-foreground",children:["Showing ",i," to ",l," of ",e.total," results"]}),r("div",{className:"flex items-center space-x-2",children:[r(n,{variant:"outline",size:"sm",onClick:()=>t(e.current_page-1),disabled:e.current_page===1,children:[s(c,{className:"h-4 w-4"}),"Previous"]}),r("div",{className:"text-sm",children:["Page ",e.current_page," of ",e.last_page]}),r(n,{variant:"outline",size:"sm",onClick:()=>t(e.current_page+1),disabled:e.current_page===e.last_page,children:["Next",s(o,{className:"h-4 w-4"})]})]})]})}export{a as P};
