summaryrefslogtreecommitdiff
path: root/src/containers/app/sidebars/topology/room/RoomSidebarContainer.js
blob: 6371e6a1a0660c23940f04925c1f265e17bfae44 (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/app/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;