import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import './ApplicationInstance.scss'; import ApplicationInstance from './ApplicationInstance'; import * as ApplicationInstanceActions from './ApplicationInstanceActions'; import { selectEditMode, selectAppDefinition, selectHosts, selectServices, selectColumns, selectParametersData, selectAnsibleVarsAll, selectParamEditMode, } from './ApplicationInstanceSelectors'; const mapStateToProps = state => ({ editMode: selectEditMode(state), appDefinition: selectAppDefinition(state), hosts: selectHosts(state), services: selectServices(state), columns: selectColumns(state), parametersData: selectParametersData(state), ansibleVarsAll: selectAnsibleVarsAll(state), paramEditMode: selectParamEditMode(state), }); const mapDispatchToProps = dispatch => bindActionCreators(ApplicationInstanceActions, dispatch); export default connect( mapStateToProps, mapDispatchToProps )(ApplicationInstance);