/* @flow */ 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 './pages/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) => (
{ props.children }
); const Wallet = (props: WalletContainerProps) => (
{/*
{ props.wallet.online ? "ONLINE" : "OFFLINE" }
*/}
{ props.children }
); const mapStateToProps: MapStateToProps = (state: State, own: {}): WalletContainerProps => ({ wallet: state.wallet, }); export default withRouter( connect(mapStateToProps, null)(Wallet), );