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, saveAsTxt } from "../../utils/saveFile"; // Icons import KeyIcon from '@mui/icons-material/Key'; import ContentCopy from "@mui/icons-material/ContentCopy"; import ForumIcon from '@mui/icons-material/Forum'; import { ExportIcon } from '../Icons'; type 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("This chat is PGP Encrypted")} {t("Your communication is end-to-end encrypted with OpenPGP. You can verify the privacy of this chat using any third party tool based on the OpenPGP standard.")} {t("Your public key")}} value={own_pub_key} variant='filled' size='small' InputProps={{ endAdornment: navigator.clipboard.writeText(own_pub_key)}> , }} /> {t("Peer public key")}} value={peer_pub_key} variant='filled' size='small' InputProps={{ endAdornment: navigator.clipboard.writeText(peer_pub_key)}> , }} /> {t("Your encrypted private key")}} value={own_enc_priv_key} variant='filled' size='small' InputProps={{ endAdornment: navigator.clipboard.writeText(own_enc_priv_key)}> , }} /> {t("Your private key passphrase (keep secure!)")}} value={passphrase} variant='filled' size='small' InputProps={{ endAdornment: navigator.clipboard.writeText(passphrase)}> , }} />
{/* */} {/* */}
) } export default AuditPGPDialog;