import React, { Component } from 'react'; import { OnlyUnlocked } from 'components/renderCbs'; import { isAnyOfflineWithWeb3 } from 'selectors/derived'; import { connect } from 'react-redux'; import { AppState } from 'reducers'; interface StateProps { shouldDisplay: boolean; } const content = (

Sorry...

MetaMask / Mist wallets are not available in offline mode.

); class UnavailableWalletsClass extends Component { public render() { return ; } } export const UnavailableWallets = connect((state: AppState) => ({ shouldDisplay: isAnyOfflineWithWeb3(state) }))(UnavailableWalletsClass);