summaryrefslogtreecommitdiff
path: root/src/containers/sidebars/topology/machine/MachineSidebarContainer.js
blob: b0d5eed971cc77feb310292e5fa6b46a1c9f1557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import {connect} from "react-redux";
import MachineSidebarComponent from "../../../../components/sidebars/topology/machine/MachineSidebarComponent";

const mapStateToProps = state => {
    return {
        machineId: state.interactionLevel.machineId,
        inSimulation: state.currentExperimentId !== -1,
    };
};

const MachineSidebarContainer = connect(
    mapStateToProps
)(MachineSidebarComponent);

export default MachineSidebarContainer;