import React from 'react'; import { ContactName } from './ContactName'; import { Intl } from '../Intl'; import { LocalizerType } from '../../types/Util'; interface ContactType { id: string; phoneNumber?: string; profileName?: string; title: string; name?: string; } export type PropsData = { isGroup: boolean; contact: ContactType; }; type PropsHousekeeping = { i18n: LocalizerType; }; export type PropsActions = { showIdentity: (id: string) => void; }; type Props = PropsData & PropsHousekeeping & PropsActions; export class SafetyNumberNotification extends React.Component { public render() { const { contact, isGroup, i18n, showIdentity } = this.props; const changeKey = isGroup ? 'safetyNumberChangedGroup' : 'safetyNumberChanged'; return (
, ]} i18n={i18n} />
); } }