11 lines
281 B
JavaScript
Raw Normal View History

2018-08-24 14:13:06 -04:00
import React, { Fragment } from 'react';
import NoConnection from './NoConnection';
const Web3Render = ({ ready, children, network }) => (
<Fragment>
{ready ? <Fragment>{children}</Fragment> : <NoConnection network={network} />}
</Fragment>
);
export default Web3Render;