// Copyright 2018 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import { SystemMessage } from './SystemMessage.js'; import { ContactName } from './ContactName.js'; import { I18n } from '../I18n.js'; import type { LocalizerType } from '../../types/Util.js'; import { missingCaseError } from '../../util/missingCaseError.js'; type Contact = { title: string }; export type PropsData = { type: 'markVerified' | 'markNotVerified'; isLocal: boolean; contact: Contact; }; type PropsHousekeeping = { i18n: LocalizerType; }; export type Props = PropsData & PropsHousekeeping; function VerificationNotificationContents({ contact, isLocal, type, i18n, }: Props) { const name = ( ); switch (type) { case 'markVerified': return isLocal ? ( ) : ( ); case 'markNotVerified': return isLocal ? ( ) : ( ); default: throw missingCaseError(type); } } export function VerificationNotification(props: Props): JSX.Element { const { type } = props; return ( } /> ); }