import { useMemo } from "react";
//#region src/components/dataSourceComponents/dataSourceTable/hooks/usePagination.ts
const usePagination = ({ data }) => {
	return useMemo(() => {
		return {
			total: data === null || data === void 0 ? void 0 : data.count,
			current: data === null || data === void 0 ? void 0 : data.page,
			pageSize: data === null || data === void 0 ? void 0 : data.pageSize,
			size: "large",
			showSizeChanger: (data === null || data === void 0 ? void 0 : data.count) > 50
		};
	}, [data]);
};
//#endregion
export { usePagination as default };
