import React from 'react'; import classNames from 'classnames'; import { Avatar, AvatarSize } from './Avatar'; import { Emojify } from './conversation/Emojify'; interface Props { pubkey: string; isMe?: boolean; name?: string; profileName?: string; avatarPath?: string; onClick?: () => void; } export class ContactListItem extends React.Component { public renderAvatar() { const { avatarPath, name, pubkey, profileName } = this.props; const userName = name || profileName || pubkey; return ; } public render() { const { name, onClick, isMe, pubkey, profileName } = this.props; const title = name ? name : pubkey; const displayName = isMe ? window.i18n('me') : title; const profileElement = !isMe && profileName && !name ? ( ~ ) : null; return (
{this.renderAvatar()}
{profileElement}
); } }