/* @flow */ import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import LandingPage from './LandingPage'; import type { MapStateToProps, MapDispatchToProps } from 'react-redux'; import type { State, Dispatch } from '~/flowtype'; export type StateProps = { localStorage: $ElementType, modal: $ElementType, web3: $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, web3: state.web3, wallet: state.wallet, connect: state.connect, router: state.router, wallet: state.wallet, devices: state.devices, }); const mapDispatchToProps: MapDispatchToProps = (dispatch: Dispatch): DispatchProps => ({ }); export default connect(mapStateToProps, mapDispatchToProps)(LandingPage);