"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const components_1 = require("@bluebase/components");
const TablePagination_1 = tslib_1.__importDefault(require("@material-ui/core/TablePagination"));
const react_1 = tslib_1.__importDefault(require("react"));
exports.TablePagination = (props) => {
    const RowsPerPage = () => props.count / props.numberOfPages;
    return (react_1.default.createElement(TablePagination_1.default, Object.assign({ rowsPerPage: RowsPerPage(), onChangePage: props.onPageChange, count: props.count, style: props.style }, props), props.children));
};
exports.TablePagination.defaultProps = components_1.TablePaginationDefaultProps;
