summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/containers/app/sidebars/topology/rack/EmptySlotContainer.js
blob: 2134e4119e4fc1646632586191bee2cb6b5e7e8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import React from 'react'
import { useDispatch } from 'react-redux'
import { addMachine } from '../../../../../redux/actions/topology/rack'
import EmptySlotComponent from '../../../../../components/app/sidebars/topology/rack/EmptySlotComponent'

const EmptySlotContainer = (props) => {
    const dispatch = useDispatch()
    const onAdd = () => dispatch(addMachine(props.position))
    return <EmptySlotComponent {...props} onAdd={onAdd} />
}

export default EmptySlotContainer