/* @flow */ import { connect } from 'react-redux'; import type { State, Dispatch } from 'flowtype'; import Dashboard from './index'; type OwnProps = {||}; type StateProps = {| localStorage: $ElementType, wallet: $ElementType, |}; export type Props = {| ...StateProps |}; const mapStateToProps = (state: State): StateProps => ({ localStorage: state.localStorage, wallet: state.wallet, }); export default connect(mapStateToProps)(Dashboard);