summaryrefslogtreecommitdiff
path: root/src/containers/app/sidebars/topology/rack/MachineListContainer.js
blob: dbedfbb2f74545fd6748ededab0c830117c65ff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;