import { BigNumber } from '@0xproject/utils'; import * as React from 'react'; import { Container } from 'ts/components/ui/container'; import { Image } from 'ts/components/ui/image'; import { Text } from 'ts/components/ui/text'; import { constants } from 'ts/utils/constants'; import { utils } from 'ts/utils/utils'; export interface AddEthOnboardingStepProps { userEthBalanceInWei: BigNumber; } export const AddEthOnboardingStep: React.StatelessComponent = props => props.userEthBalanceInWei.gt(0) ? (
Great! Looks like you already have{' '} {utils.getFormattedAmount( props.userEthBalanceInWei, constants.DECIMAL_PLACES_ETH, constants.ETHER_SYMBOL, )}{' '} in your wallet.
) : (
Before you begin you will need to send some ETH to your wallet. Click on the MetaMask extension in your browser and click either BUY or DEPOSIT.
);