import{jsxs as t,jsx as r}from"react/jsx-runtime";import{B as m}from"./button-BvFBRYHq.js";import{ChevronLeft as l,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:s}){return e.last_page<=1?null:t("div",{className:"flex items-center justify-between px-4 py-4 border-t",children:[t("div",{className:"text-sm text-muted-foreground",children:["Page ",e.current_page," of ",e.last_page]}),t("div",{className:"flex items-center gap-2",children:[r(m,{variant:"ghost",size:"sm",disabled:e.current_page===1,onClick:()=>s(e.current_page-1),children:r(l,{className:"w-4 h-4"})}),r(m,{variant:"ghost",size:"sm",disabled:e.current_page>=e.last_page,onClick:()=>s(e.current_page+1),children:r(c,{className:"w-4 h-4"})})]})]})}export{h as EventPagination};
