\ No newline at end of file
diff --git a/src/lib/ToastSystem/Toaster.svelte b/src/lib/ToastSystem/Toaster.svelte
new file mode 100644
index 0000000..f8447ed
--- /dev/null
+++ b/src/lib/ToastSystem/Toaster.svelte
@@ -0,0 +1,23 @@
+
+
+
+
+ {#each $toasts as toast (toast.id)}
+
+ {/each}
+
\ No newline at end of file
diff --git a/src/lib/ToastSystem/types.ts b/src/lib/ToastSystem/types.ts
new file mode 100644
index 0000000..42aa2d0
--- /dev/null
+++ b/src/lib/ToastSystem/types.ts
@@ -0,0 +1,5 @@
+export type ToastData = {
+ title: string
+ description: string
+ type: 'info' | 'success' | 'warning' | 'error',
+}
\ No newline at end of file
diff --git a/src/lib/Toaster.svelte b/src/lib/Toaster.svelte
deleted file mode 100644
index 4251b6c..0000000
--- a/src/lib/Toaster.svelte
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
- {#each $toasts as { id, data } (id)}
-
-
-
- {data.title}
-
-
-
- {data.description}
-
-
-
-
- {/each}
-
\ No newline at end of file
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 0d3c72d..c6e148b 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -1,6 +1,6 @@
diff --git a/src/routes/[qrcode]/+page.svelte b/src/routes/[qrcode]/+page.svelte
index feb8f00..f6df151 100644
--- a/src/routes/[qrcode]/+page.svelte
+++ b/src/routes/[qrcode]/+page.svelte
@@ -2,7 +2,7 @@
import { scale } from 'svelte/transition';
import { goto } from "$app/navigation";
import BSlideOverlay from "$lib/BSlideOverlay.svelte";
- import { addToast } from '$lib/Toaster.svelte';
+ import { addToast } from '$lib/ToastSystem/Toaster.svelte';
let { data } = $props();
@@ -29,11 +29,11 @@
function test() {
addToast({
- closeDelay: 50000,
+ closeDelay: 5000,
data: {
title: 'Success',
description: 'The resource was created!',
- color: 'green'
+ type: 'success'
},
});
}