"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const Pagination = ({ total, pageSize, current, onChange, className = '', ariaLabel = 'Pagination', zIndex = 1050, }) => {
    const totalPages = Math.ceil(total / pageSize);
    const pages = Array.from({ length: totalPages }, (_, i) => i + 1);
    return ((0, jsx_runtime_1.jsx)("div", { className: `bf-pagination ${className}`, "aria-label": ariaLabel, style: { zIndex }, children: pages.map((page) => ((0, jsx_runtime_1.jsx)("button", { className: `bf-pagination-button ${current === page ? 'bf-pagination-button-active' : ''}`, onClick: () => onChange(page), "aria-label": `Page ${page}`, children: page }, page))) }));
};
exports.default = Pagination;
//# sourceMappingURL=Pagination.js.map