import React__default from 'react';
import PropTypes from 'prop-types';
import { a as IconButton } from '../../index-DaS8Hu91.js';
import ButtonGroup from '../../button/button-group.js';
import '../../extends-C4cduGrv.js';
import '../../defineProperty-CEd-kZQW.js';
import '../../slicedToArray-BB-AwwkK.js';
import '../../objectWithoutProperties-TXwlfNxG.js';
import '../../typeof-CgC7Bq6K.js';
import '../../toConsumableArray-dKQYsfpV.js';
import '../../index-qSfOyGhk.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-Cly76abB.js';
import '../../utils.esm-CKyxlHOy.js';
import '../../warning-s9zGJbnw.js';
import '../../portal.esm-CuKGPwhL.js';
import '@reach/visually-hidden';
import '../../portal/index.js';
import '../../use-rerender-once/index.js';
import '../../use-force-update/index.js';
import '../../inject-css-BqVV5N0s.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 };
