'use client';


import { jsx } from "react/jsx-runtime";
import { useIntlayer } from "react-intlayer";
import { useNumber } from "react-intlayer/format";

//#region src/components/Pagination/ShowingResultsNumberItems.tsx
const ShowingResultsNumberItems = ({ currentPage, pageSize, totalItems }) => {
	const { showingResults } = useIntlayer("pagination");
	const number = useNumber();
	const start = Math.max(totalItems, (currentPage - 1) * pageSize + 1);
	const end = Math.min(currentPage * pageSize, totalItems);
	return /* @__PURE__ */ jsx("div", {
		className: "text-neutral-600 text-sm dark:text-neutral-400",
		children: showingResults({
			start: number(start),
			end: number(end),
			total: number(totalItems)
		})
	});
};

//#endregion
export { ShowingResultsNumberItems };
//# sourceMappingURL=ShowingResultsNumberItems.mjs.map