17 lines
327 B
JavaScript
Raw Normal View History

2018-07-04 14:46:52 -04:00
import React, { Fragment } from 'react';
2018-07-05 14:09:35 -04:00
import NoConnection from './NoConnection';
2018-07-04 14:46:52 -04:00
const NoWeb3 = () => (
<div>
NO WEB3 Provider detected
</div>
)
const Web3Render = ({ ready, children }) => (
<Fragment>
2018-07-05 14:09:35 -04:00
{ready ? <Fragment>{children}</Fragment> : <NoConnection />}
2018-07-04 14:46:52 -04:00
</Fragment>
);
export default Web3Render;