From 58ebd3bc0f00c532e97e9a5571471ffab87934ba Mon Sep 17 00:00:00 2001
From: AL-LCL <alvin@alvinhavel.com>
Date: Fri, 19 May 2023 10:39:49 +0200
Subject: GOD-VIEW

---
 server/web/src/components/Alert.tsx | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 server/web/src/components/Alert.tsx

(limited to 'server/web/src/components/Alert.tsx')

diff --git a/server/web/src/components/Alert.tsx b/server/web/src/components/Alert.tsx
new file mode 100644
index 0000000..3b69cdf
--- /dev/null
+++ b/server/web/src/components/Alert.tsx
@@ -0,0 +1,14 @@
+// @ts-nocheck
+import { AlertButton, AlertButtonCross } from '../design/components/Alert.design';
+import React from 'react';
+
+export const AlertTemplate = ({ style, options, message, close }) => (
+    <AlertButton style={style} color={options.type} bgColor={options.type}>
+        {message}
+        {options.type === 'SUCCESS' && '!'}
+        {options.type === 'DANGER' && '.'}
+        {options.type === 'WARNING' && '.'}
+        {options.type === 'INFO' && '.'}
+        <AlertButtonCross onClick={close}>x</AlertButtonCross>
+    </AlertButton>
+);
-- 
cgit v1.2.3

