import React , { FC } from 'react' ; import { GenericModal } from '@energyweb/origin-ui-core' ; import { ErrorOutline } from '@mui/icons-material' ; import { useStyles } from './RemoveSupplyConfirmModal.styles' ; import { useRemoveSupplyConfirmModalEffects } from './RemoveSupplyConfirmModal.effects' ; export const RemoveSupplyConfirmModal = ( ) => { const classes = useStyles ( ) ; const { open , title , text , buttons , dialogProps } = useRemoveSupplyConfirmModalEffects ( ) ; return ( < GenericModal icon = { < ErrorOutline className = { classes . icon } / > } dialogProps = { dialogProps } open = { open } title = { title } text = { text } buttons = { buttons } / > ) ; } ;