summaryrefslogtreecommitdiff
path: root/frontend/src/containers/app/sidebars/topology/building/BuildingSidebarContainer.js
blob: 8c8cb79bf4792ba4d15cc0d7db471bdf68d5f7a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { connect } from 'react-redux'
import BuildingSidebarComponent from '../../../../../components/app/sidebars/topology/building/BuildingSidebarComponent'

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

const BuildingSidebarContainer = connect(mapStateToProps)(
    BuildingSidebarComponent,
)

export default BuildingSidebarContainer