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