import React from 'react'; import { Emojify } from './Emojify'; import { Localizer } from '../../types/Util'; interface Props { i18n: Localizer; isVerified: boolean; name?: string; phoneNumber: string; profileName?: string; } export class ConversationTitle extends React.Component { public render() { const { name, phoneNumber, i18n, profileName, isVerified } = this.props; return ( {name ? ( ) : null} {phoneNumber ? ( {phoneNumber} ) : null}{' '} {profileName && !name ? ( ) : null} {isVerified ? ( {i18n('verified')} ) : null} ); } }