import { Box, CodeSnippet } from '@rocket.chat/fuselage'; import { useClipboard } from '@rocket.chat/fuselage-hooks'; import { ExternalLink, GenericModal } from '@rocket.chat/ui-client'; import { useId } from 'react'; import { useTranslation } from 'react-i18next'; import { links } from '../../lib/links'; export type SaveE2EPasswordModalProps = { randomPassword: string; onClose: () => void; onCancel: () => void; onConfirm: () => void; }; const DOCS_URL = links.go.e2eeGuide; const SaveE2EPasswordModal = ({ randomPassword, onClose, onCancel, onConfirm }: SaveE2EPasswordModalProps) => { const { t } = useTranslation(); const { copy, hasCopied } = useClipboard(randomPassword); const passwordId = useId(); return (

{t('E2E_password_reveal_text')} {t('Learn_more_about_E2EE')}

{t('E2E_password_save_text')}

{t('Your_E2EE_password_is')}

copy()} marginBlockStart={8} > {randomPassword}
); }; export default SaveE2EPasswordModal;