@brizy/ui
Version:
React elements in Brizy style
14 lines (13 loc) • 817 B
JavaScript
;
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 pagination_1 = __importDefault(require("antd/lib/pagination"));
const constants_1 = require("../constants");
const Pagination = ({ current, pageSize, total, onChange, size = "small", simple, disabled, }) => {
return (react_1.default.createElement(pagination_1.default, { className: `${constants_1.BRZ_PREFIX}-pagination-mini`, current: current, total: total, showSizeChanger: false, pageSize: pageSize, size: size, onChange: onChange, simple: simple, disabled: disabled }));
};
exports.Pagination = Pagination;