import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';

import Component from './component';

const mapStateToProps = ({ modal, sharedUserSettings, sharedTouchDevice: { isTouchDevice } }) => {
  const { activeModalIds } = modal;

  return {
    isTouchDevice,
    activeModalIds,
    sharedUserSettings,
  };
};

export default withRouter(connect(mapStateToProps)(Component));
