import { Typography } from '@material-ui/core/' import EthereumAddress from '../../../components/EthereumAddress' import DepositModal from '../../../containers/DepositModal' import CodeBlockTabs from '../../../components/CodeBlockTabs' import type { ReactElement } from 'react' type Props = StatusChequebookHook const ChequebookDeployFund = ({ isLoading, chequebookAddress, chequebookBalance }: Props): ReactElement | null => { if (isLoading) return null return (

{chequebookAddress?.chequebookaddress && }

{!(chequebookAddress?.chequebookaddress && chequebookBalance && chequebookBalance?.totalBalance > 0) && (
Your chequebook is either not deployed or funded. Run the below commands to get your address and deposit ETH. Then visit the BZZaar here{' '} https://bzz.ethswarm.org/?transaction=buy&amount=10&slippage=30&receiver=[ENTER_ADDRESS_HERE] {' '} to get BZZ
)}
Chequebook Address
) } export default ChequebookDeployFund