const _excluded = ["hasNextMarker", "hasPrevMarker", "onMarkerBasedPageChange"];
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
/**
 * 
 * @file Pagination component
 * @author Box
 */

import * as React from 'react';
import MarkerBasedPagination from './MarkerBasedPagination';
import OffsetBasedPagination from './OffsetBasedPagination';
import './Pagination.scss';
const Pagination = _ref => {
  let {
      hasNextMarker,
      hasPrevMarker,
      onMarkerBasedPageChange
    } = _ref,
    rest = _objectWithoutProperties(_ref, _excluded);
  if (hasNextMarker || hasPrevMarker) {
    return /*#__PURE__*/React.createElement(MarkerBasedPagination, {
      hasNextMarker: hasNextMarker,
      hasPrevMarker: hasPrevMarker,
      onMarkerBasedPageChange: onMarkerBasedPageChange
    });
  }
  return /*#__PURE__*/React.createElement(OffsetBasedPagination, rest);
};
export default Pagination;
//# sourceMappingURL=Pagination.js.map