/* @flow */ 'use strict'; import * as React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Route, withRouter } from 'react-router-dom'; import Header from '../common/Header'; import Footer from '../common/Footer'; import AccountTabs from './account/AccountTabs'; import DeviceSettingsTabs from './account/DeviceSettingsTabs'; import AsideContainer from './aside'; import ModalContainer from '../modal'; import Notifications from '../common/Notification'; import Log from '../common/Log'; import type { MapStateToProps, MapDispatchToProps } from 'react-redux'; import type { State, Dispatch } from '../../flowtype'; type WalletContainerProps = { wallet: $ElementType, children?: React.Node } type ContentProps = { children?: React.Node } const Content = (props: ContentProps) => { return (
{ props.children }
); } const Wallet = (props: WalletContainerProps) => { return (
{/*
{ props.wallet.online ? "ONLINE" : "OFFLINE" }
*/}
{ props.children }
); } const mapStateToProps: MapStateToProps = (state: State, own: {}): WalletContainerProps => { return { wallet: state.wallet }; } export default withRouter( connect(mapStateToProps, null)(Wallet) );