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