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

import Logged from './Logged';

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

const mapDispatchToProps = {};

const Wrapped = connect(mapStateToProps, mapDispatchToProps)(Logged);

export default Wrapped;
