blob: 6f14d6cdf39b179cf0c2644483d8032bdd0a2d8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { connect } from 'react-redux'
import TopologyGroup from '../../../components/app/map/groups/TopologyGroup'
const mapStateToProps = state => {
if (state.currentTopologyId === '-1') {
return {}
}
return {
topology: state.objects.topology[state.currentTopologyId],
interactionLevel: state.interactionLevel,
}
}
const TopologyContainer = connect(mapStateToProps)(TopologyGroup)
export default TopologyContainer
|