Artifact Content
Not logged in

Artifact cfc6d5d1c9183fdbad487b8d552a0aacfca1bf5a:

Unrecognized artifact
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';

import Remap from '../components/remap';
import * as publicNamesAction from '../actions/public_names';
import * as serviceNamesAction from '../actions/services';
import * as commonAction from '../actions/common';

function mapStateToProps(state) {
  return {
    nwState: state.initialiser.nwState,
    serviceContainers: state.publicNames.serviceContainers,
    error: state.publicNames.error || state.services.error,
    processing: state.publicNames.processing || state.services.processing,
    processDesc: state.publicNames.processDesc || state.services.processDesc,
    remapped: state.services.remapped,
  };
}

function mapDispatchToProps(dispatch) {
  return bindActionCreators({
    ...publicNamesAction,
    ...serviceNamesAction,
    ...commonAction,
  }, dispatch);
}

export default connect(mapStateToProps, mapDispatchToProps)(Remap);