import _Pagination from "@alifd/next/es/pagination";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["style", "size", "type", "shape", "total", "pageShowCount", "pageSize", "showJump", "pageSizeSelector", "useFloatLayout", "pageSizePosition", "hideOnlyOnePage", "link", "lefttole"];
import * as React from 'react';
import "./index.scss";
var PaginationName = function PaginationName(_ref) {
  var _ref$style = _ref.style,
    style = _ref$style === void 0 ? {} : _ref$style,
    size = _ref.size,
    type = _ref.type,
    shape = _ref.shape,
    total = _ref.total,
    pageShowCount = _ref.pageShowCount,
    pageSize = _ref.pageSize,
    showJump = _ref.showJump,
    pageSizeSelector = _ref.pageSizeSelector,
    useFloatLayout = _ref.useFloatLayout,
    pageSizePosition = _ref.pageSizePosition,
    hideOnlyOnePage = _ref.hideOnlyOnePage,
    link = _ref.link,
    lefttole = _ref.lefttole,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  var _style = style || {};
  var _otherProps = otherProps || {};
  _otherProps.style = _style;
  return /*#__PURE__*/React.createElement("div", {
    className: "maxbox"
  }, lefttole ? /*#__PURE__*/React.createElement("span", {
    className: "maxbox_left"
  }, "\u5171 ", total, " \u9879\u6570\u636E") : '', /*#__PURE__*/React.createElement(_Pagination, _extends({
    total: total,
    prefix: "next-",
    type: type,
    shape: shape
    //  defaultCurrent={defaultCurrent}
    ,
    pageShowCount: pageShowCount,
    showJump: showJump,
    pageSizePosition: pageSizePosition,
    pageSizeSelector: pageSizeSelector,
    hideOnlyOnePage: hideOnlyOnePage,
    useFloatLayout: useFloatLayout,
    pageSize: pageSize,
    size: size,
    link: link
  }, otherProps)));
};
PaginationName.displayName = 'PaginationName';
export default PaginationName;