summaryrefslogtreecommitdiff
path: root/frontend/src/containers/app/sidebars/topology/building/BuildingSidebarContainer.js
blob: 711b2b828f448561ea3e785fb86f3201cb765426 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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