UNPKG

cspace-ui

Version:
26 lines (20 loc) 537 B
import { connect } from 'react-redux'; import SearchToRelateModal from '../../components/search/SearchToRelateModal'; import { batchCreateBidirectional, showRelationNotification, } from '../../actions/relation'; import { getUserPerms, } from '../../reducers'; const mapStateToProps = (state) => ({ perms: getUserPerms(state), }); const mapDispatchToProps = { showRelationNotification, createRelations: batchCreateBidirectional, }; export default connect( mapStateToProps, mapDispatchToProps, )(SearchToRelateModal);