mirror of
https://github.com/status-im/ens-usernames.git
synced 2025-01-18 23:01:24 +00:00
11 lines
281 B
JavaScript
11 lines
281 B
JavaScript
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;
|