import React from "react"; import { WithTranslation, withTranslation } from "react-i18next"; import BranchRow from "./BranchRow"; import { Branch } from "@scm-manager/ui-types"; type Props = WithTranslation & { baseUrl: string; branches: Branch[]; }; class BranchTable extends React.Component { render() { const { t } = this.props; return ( {this.renderRow()}
{t("branches.table.branches")}
); } renderRow() { const { baseUrl, branches } = this.props; let rowContent = null; if (branches) { rowContent = branches.map((branch, index) => { return ; }); } return rowContent; } } export default withTranslation("repos")(BranchTable);