mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -05:00
27 lines
779 B
JavaScript
27 lines
779 B
JavaScript
import { connect } from "react-redux"
|
|
import * as groupActionCreators from "./group-actions"
|
|
import * as talkgroupActionCreators from "../Talkgroups/talkgroup-actions"
|
|
import { bindActionCreators } from 'redux'
|
|
import GroupModal from "./GroupModal"
|
|
|
|
//groups: state.group.items[props.match.params.shortName],
|
|
function mapStateToProps(state,props) {
|
|
return {
|
|
talkgroups: state.talkgroup.items[props.shortName],
|
|
groups: state.group.items[props.shortName],
|
|
shortName: props.shortName
|
|
}
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
groupActions: bindActionCreators(groupActionCreators,dispatch),
|
|
talkgroupActions: bindActionCreators(talkgroupActionCreators, dispatch)
|
|
}
|
|
}
|
|
|
|
export default connect(
|
|
mapStateToProps,
|
|
mapDispatchToProps
|
|
)(GroupModal)
|