/* @flow */ 'use strict'; 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 } type DispatchProps = { } type OwnProps = { } export type Props = StateProps & DispatchProps; const mapStateToProps: MapStateToProps = (state: State): StateProps => { return { localStorage: state.localStorage, modal: state.modal, web3: state.web3, wallet: state.wallet, connect: state.connect, router: state.router }; } const mapDispatchToProps: MapDispatchToProps = (dispatch: Dispatch): DispatchProps => { return { }; } export default connect(mapStateToProps, mapDispatchToProps)(LandingPage);