/* @flow */
'use strict';
import React from 'react';
import Preloader from './Preloader';
import ConnectDevice from './ConnectDevice';
import LocalStorageError from './LocalStorageError';
import TrezorConnectError from './TrezorConnectError';
import Header from '../common/Header';
import Footer from '../common/Footer';
import Log from '../common/Log';
import { Notification } from '../common/Notification';
export default (props: any): any => {
const web3 = props.web3;
const { devices } = props.connect;
const localStorageError = props.localStorage.error;
const connectError = props.connect.error;
let notification = null;
if (localStorageError) {
notification = ();
}
if (connectError) {
notification = ();
}
if (notification || (web3.length > 0 && devices.length < 1)) {
return (
{ notification }
The private bank in your hands.
TREZOR Wallet is an easy-to-use interface for your TREZOR.
TREZOR Wallet allows you to easily control your funds, manage your balance and initiate transfers.
Connect TREZOR to continue
{/*
*/}
{/*
Don't have TREZOR? Get one
*/}
);
} else {
return ();
}
}