import React from 'react'; import classNames from 'classnames'; import { TypingAnimation } from './TypingAnimation'; import { Avatar } from '../Avatar'; import { LocalizerType } from '../../types/Util'; interface Props { avatarPath?: string; color: string; name?: string; phoneNumber: string; profileName?: string; conversationType: 'group' | 'direct'; i18n: LocalizerType; } export class TypingBubble extends React.PureComponent { public renderAvatar() { const { avatarPath, color, name, phoneNumber, profileName, conversationType, i18n, } = this.props; if (conversationType !== 'group') { return; } return (
); } public render() { const { i18n, color, conversationType } = this.props; const isGroup = conversationType === 'group'; return (
{this.renderAvatar()}
); } }