// @flow import * as React from 'react'; import { convertTimestampToTime } from 'shared/time-formatting'; import ConditionalWrap from 'src/components/conditionalWrap'; import { UserHoverProfile } from 'src/components/hoverProfile'; import { Link } from 'react-router-dom'; import Badge from '../badges'; import { BadgesContainer, Byline, GutterTimestamp, Name, Username, } from './style'; type Props = { user: Object, timestamp: string, roles?: Array, bot?: boolean, messageUrl: string, }; export default (props: Props) => { const { user, roles, timestamp, messageUrl } = props; return ( ( e.stopPropagation()} > {children} {user.username && `@${user.username}`} )} > {user.name} {roles && roles.map((role, index) => ( e.stopPropagation()} /> ))} {user.betaSupporter && ( )} {convertTimestampToTime(new Date(timestamp))} ); };