2018-08-24 18:13:06 +00:00
|
|
|
import React, { Fragment } from 'react';
|
2018-10-04 10:26:22 +00:00
|
|
|
import Warning from '../../ui/components/Warning';
|
2018-08-24 18:13:06 +00:00
|
|
|
|
|
|
|
const Web3Render = ({ ready, children, network }) => (
|
|
|
|
<Fragment>
|
2018-10-04 10:26:22 +00:00
|
|
|
{ready ? <Fragment>{children}</Fragment> : <Warning>Please connect to Ethereum {network}<br />to continue.</Warning>}
|
2018-08-24 18:13:06 +00:00
|
|
|
</Fragment>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default Web3Render;
|