summaryrefslogtreecommitdiff
path: root/frontend/src/containers/app/sidebars/topology/rack/MachineListContainer.js
blob: bc5a285a32958e9521798555e3bf3b9cca6aaca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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].rackId].machineIds,
    }
}

const MachineListContainer = connect(mapStateToProps)(MachineListComponent)

export default MachineListContainer