summaryrefslogtreecommitdiff
path: root/frontend/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js
blob: d9be1e8b2d7ee8351de2ca876162ca67f8cd4cf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { connect } from 'react-redux'
import RackSidebarComponent from '../../../../../components/app/sidebars/topology/rack/RackSidebarComponent'

const mapStateToProps = state => {
    return {
        rackId: state.objects.tile[state.interactionLevel.tileId].rackId,
    }
}

const RackSidebarContainer = connect(mapStateToProps)(RackSidebarComponent)

export default RackSidebarContainer