mirror of
https://github.com/status-im/visual-identity.git
synced 2025-02-21 00:38:15 +00:00
16 lines
278 B
JavaScript
16 lines
278 B
JavaScript
|
import React, { Fragment } from 'react';
|
||
|
|
||
|
const NoWeb3 = () => (
|
||
|
<div>
|
||
|
NO WEB3 Provider detected
|
||
|
</div>
|
||
|
)
|
||
|
|
||
|
const Web3Render = ({ ready, children }) => (
|
||
|
<Fragment>
|
||
|
{ready ? <Fragment>{children}</Fragment> : <NoWeb3 />}
|
||
|
</Fragment>
|
||
|
);
|
||
|
|
||
|
export default Web3Render;
|