// @flow import * as React from 'react'; import Badge from 'src/components/badges'; import type { ThreadParticipantType } from 'shared/graphql/fragments/thread/threadParticipant'; import { UserAvatar } from 'src/components/avatar'; import { Byline, BylineMeta, AuthorName, AuthorNameLink, AuthorNameNoLink, AuthorUsername, } from '../style'; type Props = { author: { ...$Exact, }, }; class ThreadByline extends React.Component { render() { const { author } = this.props; const { user, roles } = author; return ( {user.username ? ( {user.name} @{user.username} {roles.map((role, index) => ( ))} {user.betaSupporter && ( )} ) : ( {user.name} {roles.map((role, index) => ( ))} )} ); } } export default ThreadByline;