import React, { Component } from 'react' import { withTranslation, Trans} from "react-i18next"; import {Paper, Alert, AlertTitle, Button, Link} from "@mui/material" import MediaQuery from 'react-responsive' class UnsafeAlert extends Component { constructor(props) { super(props); } state = { show: true, }; getHost(){ var url = (window.location != window.parent.location) ? this.getHost(document.referrer) : document.location.href; return url.split('/')[2] } safe_urls = [ 'robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion', 'robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion', 'robodevs7ixniseezbv7uryxhamtz3hvcelzfwpx3rvoipttjomrmpqd.onion', ] render() { const { t, i18n} = this.props; return ( (!this.safe_urls.includes(this.getHost()) & this.state.show) ?