2022-12-13 13:31:28 +00:00
import { ExternalLink } from '@vegaprotocol/ui-toolkit' ;
2023-02-28 18:56:29 +00:00
import { t } from '@vegaprotocol/i18n' ;
2022-12-13 13:31:28 +00:00
import {
BLOG ,
DApp ,
Networks ,
TOKEN_NEW_MARKET_PROPOSAL ,
TOKEN_PROPOSALS ,
useEnvironment ,
useLinks ,
} from '@vegaprotocol/environment' ;
import { ProposedMarkets } from './proposed-markets' ;
export const WelcomeNoticeDialog = ( ) = > {
const { VEGA_ENV } = useEnvironment ( ) ;
const tokenLink = useLinks ( DApp . Token ) ;
const consoleFairgroundLink = useLinks ( DApp . Console , Networks . TESTNET ) ;
const isMainnet = VEGA_ENV === Networks . MAINNET ;
return (
< >
< h1
data - testid = "welcome-notice-title"
className = "mb-6 p-4 text-center text-2xl"
>
{ t ( 'Welcome to Console' ) }
< / h1 >
< p className = "leading-6 mb-7" >
{ t (
2023-01-16 17:36:06 +00:00
'There are no markets to trade on right now. Trading on Vega is now live, but markets need to pass a governance vote before they can be traded on. In the meantime:'
2022-12-13 13:31:28 +00:00
) }
< / p >
< ul className = "list-[square] pl-7" >
{ isMainnet && (
< li >
< ExternalLink target = "_blank" href = { consoleFairgroundLink ( ) } >
{ t ( 'Try out Console' ) }
< / ExternalLink >
{ t ( ' on Fairground, our Testnet' ) }
< / li >
) }
< li >
< ExternalLink target = "_blank" href = { tokenLink ( TOKEN_PROPOSALS ) } >
{ t ( 'View and vote for proposed markets' ) }
< / ExternalLink >
< / li >
< li >
< ExternalLink
target = "_blank"
href = { tokenLink ( TOKEN_NEW_MARKET_PROPOSAL ) }
>
2023-01-16 17:36:06 +00:00
{ t ( 'Propose a market' ) }
2022-12-13 13:31:28 +00:00
< / ExternalLink >
< / li >
< li >
< ExternalLink target = "_blank" href = { BLOG } >
{ t ( 'Read about the mainnet launch' ) }
< / ExternalLink >
< / li >
< / ul >
< ProposedMarkets / >
< / >
) ;
} ;