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