13 lines
326 B
Svelte
13 lines
326 B
Svelte
|
<script>import { initializeToastStore, getToastStore } from "./stores.js";
|
||
|
import Toast from "./Toast.svelte";
|
||
|
export let toastSettings = [];
|
||
|
export let max = void 0;
|
||
|
initializeToastStore();
|
||
|
const toastStore = getToastStore();
|
||
|
toastSettings.forEach((element) => {
|
||
|
toastStore.trigger(element);
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
<Toast {max} />
|