/* @flow */ import { connect } from 'react-redux'; import type { MapStateToProps, MapDispatchToProps } from 'react-redux'; import type { State, Dispatch } from 'flowtype'; import LandingPage from './index'; export type StateProps = { localStorage: $ElementType, modal: $ElementType, wallet: $ElementType, connect: $ElementType, router: $ElementType, wallet: $ElementType, devices: $ElementType, } type DispatchProps = { } type OwnProps = { } export type Props = StateProps & DispatchProps; const mapStateToProps: MapStateToProps = (state: State): StateProps => ({ localStorage: state.localStorage, modal: state.modal, wallet: state.wallet, connect: state.connect, router: state.router, devices: state.devices, }); const mapDispatchToProps: MapDispatchToProps = (/* dispatch: Dispatch */): DispatchProps => ({ }); export default connect(mapStateToProps, mapDispatchToProps)(LandingPage);