import classNames from 'classnames'; import { t } from '@vegaprotocol/i18n'; import { ExternalLink, Intent, TradingButton } from '@vegaprotocol/ui-toolkit'; import { useVegaWallet, useVegaWalletDialogStore, isBrowserWalletInstalled, } from '@vegaprotocol/wallet'; import { Networks, useEnvironment } from '@vegaprotocol/environment'; import { useLocalStorage } from '@vegaprotocol/react-helpers'; import * as constants from '../constants'; interface Props { lead?: string; } export const GetStarted = ({ lead }: Props) => { const { pubKey } = useVegaWallet(); const { VEGA_ENV, VEGA_NETWORKS } = useEnvironment(); const CANONICAL_URL = VEGA_NETWORKS[VEGA_ENV] || 'https://console.vega.xyz'; const [, setOnboardingViewed] = useLocalStorage( constants.ONBOARDING_VIEWED_KEY ); const openVegaWalletDialog = useVegaWalletDialogStore( (store) => store.openVegaWalletDialog ); const onButtonClick = () => { openVegaWalletDialog(); setOnboardingViewed('true'); }; const wrapperClasses = classNames( 'flex flex-col py-4 px-6 gap-4 rounded', 'bg-vega-blue-300 dark:bg-vega-blue-700', 'border border-vega-blue-350 dark:border-vega-blue-650', { 'mt-8': !lead } ); if (!pubKey && !isBrowserWalletInstalled()) { return (
{t('Experiment for free with virtual assets on')}{' '}
{t('Ready to trade with real funds?')}{' '}
You need a{' '}