vega-frontend-monorepo/apps/trading/components/welcome-dialog/welcome-dialog-header.tsx
macqbat c14e57cfd5
feat(2146): adjust and refactor welcome dialogs (#2384)
* feat: adjust and refactor welcome dialogs

* feat: adjust and refactor welcome dialogs - add int tests

* feat: adjust and refactor welcome dialogs - small fixes and imprvments

* feat: adjust and refactor welcome dialogs - fix a typo

* feat: adjust and refactor welcome dialogs - fix a property name

* feat: adjust and refactor welcome dialogs - fix an unit test
2022-12-13 14:31:28 +01:00

12 lines
405 B
TypeScript

import { Networks, useEnvironment } from '@vegaprotocol/environment';
import * as constants from '../constants';
export const WelcomeDialogHeader = () => {
const { VEGA_ENV } = useEnvironment();
const header =
VEGA_ENV === Networks.MAINNET
? constants.MAINNET_WELCOME_HEADER
: constants.TESTNET_WELCOME_HEADER;
return <h1 className="mb-6 p-4 text-center text-2xl">{header}</h1>;
};