mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-11 00:07:30 -05:00
28 lines
731 B
JavaScript
28 lines
731 B
JavaScript
import { connect } from "react-redux"
|
|
import * as groupActionCreators from "../Group/group-actions"
|
|
import * as callActionCreators from "./call-actions"
|
|
import { bindActionCreators } from 'redux'
|
|
import GroupModal from "./GroupModal"
|
|
|
|
function mapStateToProps(state, props) {
|
|
return {
|
|
groups: state.group.items[props.shortName],
|
|
groupsIsWaiting: state.group.isWaiting,
|
|
shortName: props.shortName,
|
|
selectedGroup: state.call.filterGroupId
|
|
}
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
groupActions: bindActionCreators(groupActionCreators, dispatch),
|
|
callActions: bindActionCreators(callActionCreators, dispatch)
|
|
}
|
|
}
|
|
|
|
|
|
export default connect(
|
|
mapStateToProps,
|
|
mapDispatchToProps
|
|
)(GroupModal)
|