import React from 'react';
// import classNames from 'classnames';
import { ContactName } from './ContactName';
import { Intl } from '../Intl';
import { missingCaseError } from '../../util/missingCaseError';
interface Contact {
phoneNumber: string;
profileName?: string;
name?: string;
}
type Props = {
type: 'markVerified' | 'markNotVerified';
isLocal: boolean;
contact: Contact;
};
export const VerificationNotification = (props: Props) => {
const getStringId = () => {
const { isLocal, type } = props;
switch (type) {
case 'markVerified':
return isLocal
? 'youMarkedAsVerified'
: 'youMarkedAsVerifiedOtherDevice';
case 'markNotVerified':
return isLocal
? 'youMarkedAsNotVerified'
: 'youMarkedAsNotVerifiedOtherDevice';
default:
throw missingCaseError(type);
}
};
const renderContents = () => {
const { contact } = props;
const { i18n } = window;
const id = getStringId();
return (