import React from 'react'; import classNames from 'classnames'; import { Avatar } from './Avatar'; import { Emojify } from './conversation/Emojify'; import { InContactsIcon } from './InContactsIcon'; import { LocalizerType } from '../types/Util'; import { ColorType } from '../types/Colors'; interface Props { title: string; phoneNumber?: string; isMe?: boolean; name?: string; color?: ColorType; isVerified?: boolean; profileName?: string; avatarPath?: string; i18n: LocalizerType; onClick?: () => void; } export class ContactListItem extends React.Component { public renderAvatar() { const { avatarPath, i18n, color, name, phoneNumber, profileName, title, } = this.props; return ( ); } public render() { const { i18n, name, onClick, isMe, phoneNumber, profileName, title, isVerified, } = this.props; const displayName = isMe ? i18n('you') : title; const shouldShowIcon = Boolean(name); const showNumber = Boolean(isMe || name || profileName); const showVerified = !isMe && isVerified; return ( ); } }