import { connect, Store } from 'react-redux';
import { StoreState } from 'store/rootReducer';
import NotLogged, { NotLoggedProps } from './NotLogged';

const mapStateToProps = (state: StoreState): StoreState => ({
  session: state.session.data,
  profileData: state.account.profile && state.account.profile.data,
});

const mapDispatchToProps = {};

const Wrapped = connect<NotLoggedProps, {}, {}>(mapStateToProps, mapDispatchToProps)(NotLogged);

export default Wrapped;
