summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js
blob: b8fc3bfb42815dd007c4e4191b66a8804dceadb9 (plain)
1
2
3
4
5
6
7
8
9
10
import React from 'react'
import { useSelector } from 'react-redux'
import RackSidebarComponent from '../../../../../components/app/sidebars/topology/rack/RackSidebarComponent'

const RackSidebarContainer = (props) => {
    const rackId = useSelector((state) => state.objects.tile[state.interactionLevel.tileId].rackId)
    return <RackSidebarComponent {...props} rackId={rackId} />
}

export default RackSidebarContainer