import React from 'react'; import { useTranslation } from 'react-i18next'; import { useTheme } from '@mui/material/styles'; import QRCode from 'react-qr-code'; import { Dialog, DialogTitle, DialogActions, DialogContent, DialogContentText, Button, } from '@mui/material'; interface Props { open: boolean; onClose: () => void; tgBotName: string; tgToken: string; onClickEnable: () => void; } const EnableTelegramDialog = ({ open, onClose, tgBotName, tgToken, onClickEnable, }: Props): JSX.Element => { const { t } = useTranslation(); const theme = useTheme(); return ( {t('Enable TG Notifications')}
{t( 'You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.', )}
); }; export default EnableTelegramDialog;