import{jsxs as r,jsx as s}from"react/jsx-runtime";import{B as l}from"./button-BvFBRYHq.js";import{ChevronLeft as m,ChevronRight as c}from"lucide-react";import"@radix-ui/react-slot";import"class-variance-authority";import"./utils-CMbmcP35.js";import"clsx";import"tailwind-merge";function h({pagination:e,onPageChange:t}){return e.last_page<=1?null:r("div",{className:"flex items-center justify-between mt-4",children:[r("p",{className:"text-sm text-muted-foreground",children:["Page ",e.current_page," of ",e.last_page]}),r("div",{className:"flex gap-2",children:[r(l,{variant:"outline",size:"sm",onClick:()=>t(e.current_page-1),disabled:e.current_page===1,children:[s(m,{className:"h-4 w-4"}),"Previous"]}),r(l,{variant:"outline",size:"sm",onClick:()=>t(e.current_page+1),disabled:e.current_page===e.last_page,children:["Next",s(c,{className:"h-4 w-4"})]})]})]})}export{h as ItemTemplatePagination};
