"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Pagination = void 0;
const react_1 = __importDefault(require("react"));
const antd_1 = require("antd");
const styled_components_1 = __importDefault(require("styled-components"));
const Root = styled_components_1.default.div `
  text-align: center;
  padding: 12px 0 0;
`;
function Pagination(props) {
    const { total = 0, pageSize = 0, size = 'default' } = props;
    return (react_1.default.createElement(react_1.default.Fragment, null, total && total / pageSize > 1 ? (react_1.default.createElement(Root, null,
        react_1.default.createElement(antd_1.Pagination, Object.assign({ size: size, showSizeChanger: false }, props)))) : null));
}
exports.Pagination = Pagination;
exports.default = Pagination;
