"use client";
const require_Pagination_context = require("../Pagination.context.cjs");
const require_PaginationControl = require("../PaginationControl/PaginationControl.cjs");
const require_PaginationDots = require("../PaginationDots/PaginationDots.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/Pagination/PaginationItems/PaginationItems.tsx
function PaginationItems({ dotsIcon }) {
	const ctx = require_Pagination_context.usePaginationContext();
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: ctx.range.map((page, index) => {
		if (page === "dots") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PaginationDots.PaginationDots, { icon: dotsIcon }, index);
		return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PaginationControl.PaginationControl, {
			active: page === ctx.active,
			"aria-current": page === ctx.active ? "page" : void 0,
			onClick: () => ctx.onChange(page),
			disabled: ctx.disabled,
			...ctx.getItemProps?.(page),
			children: ctx.getItemProps?.(page)?.children ?? page
		}, index);
	}) });
}
PaginationItems.displayName = "@mantine/core/PaginationItems";
//#endregion
exports.PaginationItems = PaginationItems;

//# sourceMappingURL=PaginationItems.cjs.map