import { t } from '@vegaprotocol/i18n'; import { GetStarted } from './get-started'; import { TradingButton } from '@vegaprotocol/ui-toolkit'; import { useNavigate } from 'react-router-dom'; import { Links, Routes } from '../../pages/client-router'; import { useLocalStorage } from '@vegaprotocol/react-helpers'; import * as constants from '../constants'; import { Networks, useEnvironment } from '@vegaprotocol/environment'; import type { ReactNode } from 'react'; export const WelcomeDialogContent = () => { const { VEGA_ENV } = useEnvironment(); const [, setOnboardingViewed] = useLocalStorage( constants.ONBOARDING_VIEWED_KEY ); const navigate = useNavigate(); const browseMarkets = () => { const link = Links[Routes.MARKETS](); navigate(link); setOnboardingViewed('true'); }; const lead = VEGA_ENV === Networks.MAINNET ? t('Start trading on the worlds most advanced decentralised exchange.') : t( 'Free from the risks of real trading, Fairground is a safe and fun place to try out Vega yourself with virtual assets.' ); return (
{text}