1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Button, Col, Container, Row } from 'react-bootstrap';
4 import { withTranslation } from 'react-i18next';
6 import Box from './Box';
7 import EditStreamLinkButton from './EditStreamLinkButton';
8 import Icon from '../common/Icon';
9 import i18n from '../../i18n';
11 const Profile = ({ user }) => <Container>
12 <h1>{user.username}</h1>
15 <h2>{i18n.t('users.discordTag')}</h2>
16 <Box discriminator user={user} />
19 <h2>{i18n.t('users.streamLink')}</h2>
23 href={user.stream_link}
25 variant="outline-twitch"
32 i18n.t('users.noStream')
35 <EditStreamLinkButton user={user} />
42 user: PropTypes.shape({
43 stream_link: PropTypes.string,
44 username: PropTypes.string,
48 export default withTranslation()(Profile);