From 435ecb271a67d25974ae41c7bd812c5c2341b313 Mon Sep 17 00:00:00 2001 From: Puja Tajpuriya Date: Wed, 14 Aug 2024 22:29:06 +0545 Subject: [PATCH] Add ExitConfirmationModal and other changes --- .../header/ExitConfirmationModal.tsx | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 nepalingo-web/src/components/header/ExitConfirmationModal.tsx diff --git a/nepalingo-web/src/components/header/ExitConfirmationModal.tsx b/nepalingo-web/src/components/header/ExitConfirmationModal.tsx new file mode 100644 index 0000000..61c4912 --- /dev/null +++ b/nepalingo-web/src/components/header/ExitConfirmationModal.tsx @@ -0,0 +1,35 @@ +import React from "react" +interface ExitConfrimationModalProps { + show: boolean; + onConfirm: (confirm: boolean) => void; +} +const ExitConfrimationModal: React.FC = ({ + show, + onConfirm +}) => { + if (!show) return null; + + function confirmExit(arg0: boolean): void { + throw new Error("Function not implemented."); + } + + return ( +
+
+

Are you sure you want to exit?

+
+ + +
+
+
+ ); +}; +export default ExitConfirmationModal; \ No newline at end of file