// @flow import React from "react"; import { translate } from "react-i18next"; import { ButtonAddons, Button } from "@scm-manager/ui-components"; type Props = { t: string => string, historyIsSelected: boolean, showHistory: boolean => void }; class FileButtonGroup extends React.Component { showHistory = () => { this.props.showHistory(true); }; showSources = () => { this.props.showHistory(false); }; color = (selected: boolean) => { return selected ? "link is-selected" : null; }; render() { const { t, historyIsSelected } = this.props; return ( ); } } export default translate("repos")(FileButtonGroup);