import React from 'react'; import { useTranslation } from 'react-i18next'; import { Dialog, DialogContent, Divider, IconButton, List, ListItemText, ListItem, ListItemIcon, ListItemButton, Tooltip, Typography, } from '@mui/material'; import SendIcon from '@mui/icons-material/Send'; import GitHubIcon from '@mui/icons-material/GitHub'; import RedditIcon from '@mui/icons-material/Reddit'; import Flags from 'country-flag-icons/react/3x2'; import { NostrIcon, SimplexIcon, XIcon } from '../Icons'; interface Props { open: boolean; onClose: () => void; } const CommunityDialog = ({ open = false, onClose }: Props): JSX.Element => { const { t } = useTranslation(); const [client] = window.RobosatsSettings.split('-'); const flagProps = { width: 30, height: 30, opacity: 0.85, style: { filter: 'drop-shadow(2px 2px 2px #444444)', }, }; return ( {t('Community')}

{t( 'Support is only offered via SimpleX. Join our community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!', )}

{ if (client === 'mobile') { window.location.href = 'nostr:npub1p2psats79rypr8lpnl9t5qdekfp700x660qsgw284xvq4s09lqrqqk3m82'; } else { window.open( 'https://njump.me/npub1p2psats79rypr8lpnl9t5qdekfp700x660qsgw284xvq4s09lqrqqk3m82', '_blank', 'noopener,noreferrer', ); } }} >
); }; export default CommunityDialog;