blob: 868f26da0f5b5f01737dc3c015327d0df1d7967a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { connect } from 'react-redux'
import MachineSidebarComponent from '../../../../../components/app/sidebars/topology/machine/MachineSidebarComponent'
const mapStateToProps = state => {
return {
machineId:
state.objects.rack[
state.objects.tile[state.interactionLevel.tileId].rackId
].machineIds[state.interactionLevel.position - 1],
}
}
const MachineSidebarContainer = connect(mapStateToProps)(
MachineSidebarComponent,
)
export default MachineSidebarContainer
|