import * as React from 'react' ; import IconButton from "@material-ui/core/IconButton" ; import DeleteIcon from '@material-ui/icons/Delete' ; import { MUIDeleteAction } from "../actions/MUIDeleteAction" ; import { useDialogManager } from "../dialogs/MUIDialogControllers" ; export const MUIDeleteIconButton = ( props ) => { const handleClick = MUIDeleteAction . create ( props ) ; const dialogs = useDialogManager ( ) ; return ( < IconButton onClick = { ( ) => handleClick ( dialogs ) } > < DeleteIcon /> < /IconButton>); } ;