>;
- handleConfirm: () => void;
+ handleConfirm?: () => void;
handleClose?: () => void;
+ cancelButton?: boolean;
children?: React.ReactElement;
}) => {
const modalRoot = document.getElementById('modal-root');
@@ -54,20 +56,24 @@ const PopupModal = ({
{children}
-
-
+ {handleConfirm && (
+
+ )}
+ {cancelButton && (
+
+ )}