"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Paginate = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0; you may not use this file except in compliance with the Elastic License
 * 2.0.
 */

const Paginate = ({
  children,
  ...childrenProps
}) => {
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children(childrenProps));
};
exports.Paginate = Paginate;
Paginate.propTypes = {
  children: _propTypes.default.func.isRequired,
  rows: _propTypes.default.array.isRequired,
  perPage: _propTypes.default.number.isRequired,
  pageNumber: _propTypes.default.number.isRequired,
  totalPages: _propTypes.default.number.isRequired,
  nextPageEnabled: _propTypes.default.bool.isRequired,
  prevPageEnabled: _propTypes.default.bool.isRequired,
  setPage: _propTypes.default.func.isRequired,
  nextPage: _propTypes.default.func.isRequired,
  prevPage: _propTypes.default.func.isRequired
};