"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataGridMinimalisticPagination = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const DataGridPaginationContainer_1 = require("../DataGridPaginationContainer");
const MinimalisticPagination_1 = require("../MinimalisticPagination");
const DataGridMinimalisticPagination = ({ isEndReached, page, isForcePagination, rowsPerPage, rowsPerPageOptions, onSetCountPerPage, isDisabled, className, ...restProps }) => {
    if (isEndReached && page === 1 && !isForcePagination) {
        return null;
    }
    return ((0, jsx_runtime_1.jsx)(DataGridPaginationContainer_1.DataGridPaginationContainer, { rowsPerPageOptions: rowsPerPageOptions, rowsPerPage: rowsPerPage, onSetCountPerPage: onSetCountPerPage, isDisabled: isDisabled, className: className, pagination: (0, jsx_runtime_1.jsx)(MinimalisticPagination_1.MinimalisticPagination, { page: page, isEndReached: isEndReached, isDisabled: isDisabled, ...restProps }) }));
};
exports.DataGridMinimalisticPagination = DataGridMinimalisticPagination;
