{"size": 671, "ext": "js", "max_stars_repo_path": "src/ui/components/ButtonNavigationGroup.js", "max_stars_repo_name": "noyobo/flipper", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/ui/components/ButtonNavigationGroup.js", "max_issues_repo_name": "noyobo/flipper", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/ui/components/ButtonNavigationGroup.js", "max_forks_repo_name": "noyobo/flipper", "max_forks_repo_forks_event_min_datetime": "2021-08-31T03:17:58.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-31T03:17:58.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 23.1379310345, "max_line_length": 71, "alphanum_fraction": 0.6438152012}
/**
 * Copyright 2018-present Facebook.
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 * @format
 */

import ButtonGroup from './ButtonGroup.js';
import Button from './Button.js';

export default function ButtonNavigationGroup(props: {|
  canGoBack: boolean,
  canGoForward: boolean,
  onBack: () => void,
  onForward: () => void,
|}) {
  return (
    <ButtonGroup>
      <Button disabled={!props.canGoBack} onClick={props.onBack}>
        {'<'}
      </Button>

      <Button disabled={!props.canGoForward} onClick={props.onForward}>
        {'<'}
      </Button>
    </ButtonGroup>
  );
}
