import { t } from '@vegaprotocol/i18n'; import { Button, Link, VegaIcon, VegaIconNames, } from '@vegaprotocol/ui-toolkit'; import { RISK_ACCEPTED_KEY } from '../constants'; import { TelemetryApproval } from './telemetry-approval'; import type { Networks } from '@vegaprotocol/environment'; import { useEnvironment, DocsLinks, ExternalLinks, } from '@vegaprotocol/environment'; import { useLocalStorage } from '@vegaprotocol/react-helpers'; interface Props { onClose: () => void; network: Networks; } export const RiskNoticeDialog = ({ onClose, network }: Props) => { const [, setValue] = useLocalStorage(RISK_ACCEPTED_KEY); const handleAcceptRisk = () => { onClose(); setValue('true'); }; return ( ); }; const TestnetContent = ({ network, handleAcceptRisk, }: { network: Networks; handleAcceptRisk: () => void; }) => { const { GITHUB_FEEDBACK_URL } = useEnvironment(); return ( <>

{t( 'This application for trading on Vega is connected to %s, meaning you are free to try out trading with virtual assets and no risk.', [network] )}

{t( 'Your Vega wallet must also be connected to %s, and your Ethereum wallet must be connected to Sepolia.', [network] )}

{GITHUB_FEEDBACK_URL && DocsLinks && ( )}
); };