From 8c8edfc9c8bb1a0fa3d1e02aab576044857f1c95 Mon Sep 17 00:00:00 2001
From: Wolfboy248 <105884620+Wolfboy248@users.noreply.github.com>
Date: Sun, 20 Oct 2024 00:27:38 +0200
Subject: refactor: custom modals

---
 frontend/src/components/MessageDialog.tsx | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 frontend/src/components/MessageDialog.tsx

(limited to 'frontend/src/components/MessageDialog.tsx')

diff --git a/frontend/src/components/MessageDialog.tsx b/frontend/src/components/MessageDialog.tsx
new file mode 100644
index 0000000..0a8db42
--- /dev/null
+++ b/frontend/src/components/MessageDialog.tsx
@@ -0,0 +1,29 @@
+import React from 'react';
+
+import "../css/Dialog.css"
+
+interface MessageDialogProps {
+    title: string;
+    subtitle: string;
+    onClose: () => void;
+};
+
+const MessageDialog: React.FC<MessageDialogProps> = ({ title, subtitle, onClose }) => {
+    return (
+        <div className='dimmer'>
+            <div className='dialog'>
+                <div className='dialog-element dialog-header'>
+                    <span>{title}</span>
+                </div>
+                <div className='dialog-element dialog-description'>
+                    <span>{subtitle}</span>
+                </div>
+                <div className='dialog-element dialog-btns-container'>
+                    <button onClick={onClose}>Ok</button>
+                </div>
+            </div>
+        </div>
+    )
+}
+
+export default MessageDialog;
-- 
cgit v1.2.3

