import _Pagination from "antd/es/pagination";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["simple", "size", "ifTotal", "disabled", "current", "defaultCurrent", "defaultPageSize", "showSizeChanger", "showQuickJumper", "hideOnSinglePage", "showLessItems", "total", "pageSize"];
/* eslint-disable @typescript-eslint/no-shadow */
import * as React from 'react';
import "./index.less";
// import locale from 'antd/es/locale/zh_CN';

var antPagination = function antPagination(_ref) {
  var simple = _ref.simple,
    size = _ref.size,
    ifTotal = _ref.ifTotal,
    disabled = _ref.disabled,
    current = _ref.current,
    defaultCurrent = _ref.defaultCurrent,
    defaultPageSize = _ref.defaultPageSize,
    showSizeChanger = _ref.showSizeChanger,
    showQuickJumper = _ref.showQuickJumper,
    hideOnSinglePage = _ref.hideOnSinglePage,
    showLessItems = _ref.showLessItems,
    total = _ref.total,
    pageSize = _ref.pageSize,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  if (ifTotal) {
    otherProps.showTotal = function (total) {
      return "\u603B " + total + " \u6761";
    };
  }
  return (
    /*#__PURE__*/
    // <ConfigProvider locale={locale}>
    // </ConfigProvider>
    React.createElement(_Pagination, _extends({
      simple: simple,
      size: size,
      current: current || 1,
      defaultCurrent: current || 1,
      defaultPageSize: defaultPageSize || 1,
      disabled: disabled,
      hideOnSinglePage: hideOnSinglePage,
      pageSize: pageSize || 1
      // pageSizeOptions={pageSizeOptions}
      ,
      total: total || 1,
      showSizeChanger: showSizeChanger,
      showQuickJumper: showQuickJumper,
      showLessItems: showLessItems
    }, otherProps))
  );
};
antPagination.displayName = 'antPagination';
export default antPagination;