blob: 7553c2fe46efda80a8a56836255d2607a830f0a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import React from 'react'
import { useSelector } from 'react-redux'
import MachineSidebarComponent from '../../../../../components/app/sidebars/topology/machine/MachineSidebarComponent'
const MachineSidebarContainer = (props) => {
const machineId = useSelector(
(state) =>
state.objects.rack[state.objects.tile[state.interactionLevel.tileId].rack].machines[
state.interactionLevel.position - 1
]
)
return <MachineSidebarComponent {...props} machineId={machineId} />
}
export default MachineSidebarContainer
|