first commit
Some checks failed
Build / run (push) Has been cancelled

This commit is contained in:
maher
2025-10-29 11:42:25 +01:00
commit 703f50a09d
4595 changed files with 385164 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
import {ButtonProps} from '../ui/buttons/button';
export interface DatabaseNotification {
id: string;
read_at: string;
created_at: string;
type: string;
data: DatabaseNotificationData;
}
export interface DatabaseNotificationAction {
label: string;
action: string;
// only emit "notificationClicked" event on notification
// server and don't open "action" link in new window
emitOnly?: boolean;
color?: ButtonProps['color'];
}
export interface DatabaseNotificationData {
image: string;
warning?: boolean;
mainAction?: DatabaseNotificationAction;
buttonActions?: DatabaseNotificationAction[];
lines: DatabaseNotificationLine[];
}
export interface DatabaseNotificationLine {
content: string;
icon?: string;
type?: 'secondary' | 'primary';
action?: DatabaseNotificationAction;
}
export interface BroadcastNotification extends DatabaseNotificationData {
id: string;
type: string;
}