import { connect } from 'react-redux';
import { StoreState } from 'store/rootReducer';

import Home, { StateProps, DispatchProps, OwnProps } from './Home';

const mapStateToProps = (state: StoreState): {} => ({
  session: state.session,
});

const mapDispatchToProps = {};

const Wrapped = connect<StateProps, DispatchProps, OwnProps>(
  mapStateToProps,
  mapDispatchToProps,
)(Home);

export default Wrapped;
