import React from 'react'; import { translate } from 'react-i18next'; import BranchRow from './BranchRow'; import { Branch } from '@scm-manager/ui-types'; type Props = { baseUrl: string; t: (p: string) => 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 translate('repos')(BranchTable);