diff --git a/client/src/components/common/modal.jsx b/client/src/components/common/modal.jsx
index 1110577..6cd8b5c 100644
--- a/client/src/components/common/modal.jsx
+++ b/client/src/components/common/modal.jsx
@@ -1,20 +1,13 @@
import BootModal from "react-bootstrap/Modal";
-function CustomModal({ title, show, body, handleConfirm, handleClose }) {
+function CustomModal({ title, show, body, handleClose, footer }) {
return (
{title}
-
-
-
-
-
+ {body && {body}}
+ {footer && {footer}}
);
}
diff --git a/client/src/hooks/useDeleteMessage.js b/client/src/hooks/useDeleteMessage.js
index 08d524d..09d3312 100644
--- a/client/src/hooks/useDeleteMessage.js
+++ b/client/src/hooks/useDeleteMessage.js
@@ -23,12 +23,24 @@ const useDeleteMsgModal = (handleConfirm) => {
handleDelMsgClose();
};
+ const modalFooter = (
+ <>
+
+
+ >
+ );
+
const modalBody = (
);