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

const mapStateToProps = state => {
    return {
        roomId: state.interactionLevel.roomId,
        roomType: state.objects.room[state.interactionLevel.roomId].roomType,
        inSimulation: state.currentExperimentId !== -1,
    };
};

const RoomSidebarContainer = connect(
    mapStateToProps
)(RoomSidebarComponent);

export default RoomSidebarContainer;