import { withTranslation } from 'react-i18next';
import Icon from './Icon';
+import { getAvatarUrl } from '../../helpers/User';
import { withUser } from '../../helpers/UserContext';
import i18n from '../../i18n';
-const getAvatarUrl = user => `//cdn.discordapp.com/avatars/${user.id}/${user.avatar}.png`;
-
const Header = ({ doLogout, user }) =>
<Navbar id="header" bg="dark" variant="dark">
<Container fluid>