feat: Add interface for adding and configuring plugins

This commit is contained in:
Aleksi Lassila
2024-12-06 03:41:29 +02:00
parent 9b6ff3379e
commit d3818903b3
27 changed files with 624 additions and 83 deletions

View File

@@ -1,5 +1,6 @@
import type { ComponentType } from 'svelte';
import { writable } from 'svelte/store';
import Notification from './Notification.svelte';
type NotificationItem = {
id: symbol;
@@ -24,3 +25,7 @@ function useNotificationStack() {
}
export const notificationStack = useNotificationStack();
export const createErrorNotification = (message: string) => {
console.error(message);
notificationStack.create(Notification, { title: 'Unexpected error occurred', body: message });
};