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