summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/containers/app/sidebars/topology/machine/DeleteMachineContainer.js
blob: 1510a4369db1103e5926b36c807e5f513c972465 (plain)
1
2
3
4
5
6
7
8
9
10
11
import React from 'react'
import { useDispatch } from 'react-redux'
import { openDeleteMachineModal } from '../../../../../actions/modals/topology'
import DeleteMachineComponent from '../../../../../components/app/sidebars/topology/machine/DeleteMachineComponent'

const DeleteMachineContainer = (props) => {
    const dispatch = useDispatch()
    return <DeleteMachineComponent {...props} onClick={() => dispatch(openDeleteMachineModal())} />
}

export default DeleteMachineContainer