import { useMemo } from 'react';
var usePagination = function usePagination(_ref) {
  var data = _ref.data;
  return useMemo(function () {
    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]);
};
export default usePagination;