summaryrefslogtreecommitdiff
path: root/frontend/src/containers/app/sidebars/topology/rack/MachineListContainer.js
blob: 3a797ed5c881788c4a71aeb395bbd8394ca92bdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { connect } from 'react-redux'
import MachineListComponent from '../../../../../components/app/sidebars/topology/rack/MachineListComponent'

const mapStateToProps = state => {
    return {
        machineIds:
        state.objects.rack[
            state.objects.tile[state.interactionLevel.tileId].objectId
            ].machineIds,
    }
}

const MachineListContainer = connect(mapStateToProps)(MachineListComponent)

export default MachineListContainer