import type { ReactElement } from 'react' import { Typography } from '@material-ui/core/' import { CheckCircle, Warning } from '@material-ui/icons/' import EthereumAddress from '../../../components/EthereumAddress' import type { NodeAddresses } from '@ethersphere/bee-js' interface Props { nodeAddresses: NodeAddresses | null isLoadingNodeAddresses: boolean } export default function EthereumConnectionCheck(props: Props): ReactElement { return (

Connect to the ethereum blockchain.

{ // FIXME: this should be broken up /* eslint-disable no-nested-ternary */ props.nodeAddresses?.ethereum ? (
Your connected to the Ethereum network
) : props.isLoadingNodeAddresses ? null : (
Your not connected to the Ethereum network.

Your Bee node must have access to the Ethereum blockchain, so that it can interact and deploy your chequebook contract. You can run{' '} your own Goerli node , or use a provider such as{' '} rpc.slock.it/goerli {' '} or{' '} Infura . By default, Bee expects a local Goerli node at http://localhost:8545. To use a provider instead, simply change your --swap-endpoint in your configuration file.

) /* eslint-enable no-nested-ternary */ }
Node Address
) }