import React from 'react'; import { useTranslation } from 'react-i18next'; import { Dialog, DialogTitle, Tooltip, IconButton, TextField, DialogActions, DialogContent, DialogContentText, Button, Grid, Link, } from '@mui/material'; import { saveAsJson } from '../../utils/saveFile'; import { systemClient } from '../../services/System'; // Icons import KeyIcon from '@mui/icons-material/Key'; import ContentCopy from '@mui/icons-material/ContentCopy'; import ForumIcon from '@mui/icons-material/Forum'; import { ExportIcon, NewTabIcon } from '../Icons'; function CredentialTextfield(props) { return ( {props.label}} value={props.value} variant='filled' size='small' InputProps={{ endAdornment: ( systemClient.copyToClipboard(props.value)}> ), }} /> ); } interface Props { open: boolean; onClose: () => void; orderId: number; messages: array; own_pub_key: string; own_enc_priv_key: string; peer_pub_key: string; passphrase: string; onClickBack: () => void; } const AuditPGPDialog = ({ open, onClose, orderId, messages, own_pub_key, own_enc_priv_key, peer_pub_key, passphrase, onClickBack, }: Props): JSX.Element => { const { t } = useTranslation(); return ( {t("Don't trust, verify")} {t( 'Your communication is end-to-end encrypted with OpenPGP. You can verify the privacy of this chat using any tool based on the OpenPGP standard.', )}
); }; export default AuditPGPDialog;