//@flow import React from "react"; import type { Repository, Branch } from "@scm-manager/ui-types"; import { translate } from "react-i18next"; type Props = { repository: Repository, branch: Branch, // context props t: string => string }; class BranchDetailTable extends React.Component { render() { const { repository, branch, t } = this.props; return (
{t("branch.name")} branch.name
{t("branch.repository")} {repository.name}
); } } export default translate("repos")(BranchDetailTable);