import { connect } from 'react-redux' ; import { bindActionCreators } from 'redux' ; import { closeCreateDialog , createFeature } from '../actions' ; import CreateDialog from '../components/CreateDialog/index' ; const mapStateToProps = ( state ) => { return { isOpen : state . get ( 'createDialogVisible' ) , } ; } ; const mapDispatchToProps = ( dispatch , ownProps ) => bindActionCreators ( { closeCreateDialog , createFeature } , dispatch ) ; const CreateDialogContainer = connect ( mapStateToProps , mapDispatchToProps ) ( CreateDialog ) ; export default CreateDialogContainer ;