import React__default from 'react';
import PropTypes from 'prop-types';
import { a as IconButton } from '../../index-99927619.js';
import ButtonGroup from '../../button/button-group.js';
import '../../extends-e61fd370.js';
import '../../defineProperty-18999f8e.js';
import '../../slicedToArray-5b664d46.js';
import '../../objectWithoutProperties-72d23964.js';
import '../../typeof-6c6d8d7a.js';
import '../../toConsumableArray-f2f53597.js';
import '../../index-81a9bdac.js';
import 'react-dom';
import 'classnames';
import '../../icon/assets/icon-map/index.js';
import '../../social-icon/index.js';
import '@fortawesome/react-fontawesome';
import '../../social-icon/icons.js';
import '../../social-icon/library.js';
import '@fortawesome/fontawesome-svg-core';
import '@fortawesome/free-solid-svg-icons';
import '@fortawesome/free-brands-svg-icons';
import '../../tooltip/index.js';
import '../../auto-id.esm-2b54f757.js';
import '../../utils.esm-514fad91.js';
import '../../warning-ed2bf294.js';
import '../../portal.esm-613949dc.js';
import '@reach/visually-hidden';
import '../../portal/index.js';
import '../../use-rerender-once/index.js';
import '../../use-force-update/index.js';
import '../../inject-css-ccd0a386.js';

function Navigation(_ref) {
  var onPreviousPage = _ref.onPreviousPage,
      onNextPage = _ref.onNextPage,
      hasPreviousPage = _ref.hasPreviousPage,
      hasNextPage = _ref.hasNextPage;
  return /*#__PURE__*/React__default.createElement(ButtonGroup, null, /*#__PURE__*/React__default.createElement(IconButton, {
    icon: "left",
    is: "plain",
    label: "Previous group of results",
    onClick: onPreviousPage,
    disabled: !hasPreviousPage
  }), /*#__PURE__*/React__default.createElement(IconButton, {
    icon: "right",
    is: "plain",
    label: "Next group of results",
    onClick: onNextPage,
    disabled: !hasNextPage
  }));
}
Navigation.propTypes = {
  onPreviousPage: PropTypes.func.isRequired,
  onNextPage: PropTypes.func.isRequired,
  hasPreviousPage: PropTypes.bool.isRequired,
  hasNextPage: PropTypes.bool.isRequired
};

export { Navigation as default };
