website cleanup

This commit is contained in:
2025-12-24 21:44:58 +01:00
parent 9b683a59d3
commit d78854a4c6
277 changed files with 6141 additions and 2693 deletions

View File

@@ -6,28 +6,7 @@ import { v4 as uuid } from 'uuid';
import ModalNotification from './ModalNotification';
import ToastNotification from './ToastNotification';
export type NotificationVariant = 'toast' | 'modal' | 'center';
export interface NotificationAction {
id: string;
label: string;
type?: 'primary' | 'secondary' | 'danger';
href?: string;
}
export interface Notification {
id: string;
type: string;
title?: string;
message: string;
createdAt: Date;
variant: NotificationVariant;
actionUrl?: string;
requiresResponse?: boolean;
actions?: NotificationAction[];
data?: Record<string, unknown>;
read: boolean;
}
import type { Notification, NotificationAction, NotificationVariant } from './notificationTypes';
interface AddNotificationInput {
id?: string;
@@ -184,4 +163,4 @@ export default function NotificationProvider({ children }: NotificationProviderP
)}
</NotificationContext.Provider>
);
}
}