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