import { Box, makeStyles, Typography } from '@material-ui/core'; import IpcInvokeButton from 'renderer/components/IpcInvokeButton'; import { useAppSelector } from 'store/hooks'; import StopIcon from '@material-ui/icons/Stop'; import PlayArrowIcon from '@material-ui/icons/PlayArrow'; import InfoBox from '../../modal/swap/InfoBox'; import CliLogsBox from '../../other/RenderedCliLog'; const useStyles = makeStyles((theme) => ({ actionsOuter: { display: 'flex', gap: theme.spacing(1), }, })); export default function TorInfoBox() { const isTorRunning = useAppSelector((state) => state.tor.processRunning); const torStdOut = useAppSelector((s) => s.tor.stdOut); const classes = useStyles(); return ( Tor is a network that allows you to anonymously connect to the internet. It is a free and open network that is operated by volunteers. You can start and stop Tor by clicking the buttons below. If Tor is running, all traffic will be routed through it and the swap provider will not be able to see your IP address. } additionalContent={ } requiresRpc={false} > Start Tor } requiresRpc={false} > Stop Tor } icon={null} loading={false} /> ); }