From 1c51ea2e373dcdd458d8cdc1d3b2225c316f346d Mon Sep 17 00:00:00 2001
From: Wolfboy248 <105884620+Wolfboy248@users.noreply.github.com>
Date: Sun, 20 Oct 2024 16:51:43 +0200
Subject: refactor: touch ups

---
 frontend/src/components/UseMessage.tsx | 27 ---------------------------
 1 file changed, 27 deletions(-)
 delete mode 100644 frontend/src/components/UseMessage.tsx

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

diff --git a/frontend/src/components/UseMessage.tsx b/frontend/src/components/UseMessage.tsx
deleted file mode 100644
index fbd3c82..0000000
--- a/frontend/src/components/UseMessage.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import React, { useState } from 'react';
-import MessageDialog from "./MessageDialog";
-
-const useMessage = () => {
-    const [isOpen, setIsOpen] = useState(false);
-
-    const [title, setTitle] = useState<string>("");
-    const [subtitle, setSubtitle] = useState<string>("");
-
-    const message = (title: string, subtitle: string) => {
-        setIsOpen(true);
-        setTitle(title);
-        setSubtitle(subtitle);
-    };
-
-    const handleClose = () => {
-        setIsOpen(false);
-    };
-
-    const MessageDialogComponent = isOpen && (
-        <MessageDialog title={title} subtitle={subtitle} onClose={handleClose}></MessageDialog>
-    );
-
-    return { message, MessageDialogComponent };
-}
-
-export default useMessage;
-- 
cgit v1.2.3

