import React from 'react'; import { LocalizerType } from '../../types/Util'; type Props = { count: number; i18n: LocalizerType; }; export class LastSeenIndicator extends React.Component { public render() { const { count, i18n } = this.props; const message = count === 1 ? i18n('unreadMessage') : i18n('unreadMessages', [String(count)]); return (
{message}
); } }