// @flow import React from "react"; import type { Me } from "@scm-manager/ui-types"; import { MailLink, AvatarWrapper, AvatarImage } from "@scm-manager/ui-components"; import { compose } from "redux"; import { translate } from "react-i18next"; type Props = { me: Me, // Context props t: string => string }; type State = {}; class ProfileInfo extends React.Component { render() { const { me, t } = this.props; return (

{t("profile.username")} {me.name}
{t("profile.displayName")} {me.displayName}
{t("profile.mail")}
{t("profile.groups")}
    {me.groups.map((group) => { return
  • {group}
  • ; })}
); } } export default compose(translate("commons"))(ProfileInfo);