forked from StellarSplit/StellarSplit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotifications.ts
More file actions
29 lines (27 loc) · 771 Bytes
/
Copy pathnotifications.ts
File metadata and controls
29 lines (27 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
export type NotificationType =
| "split_invitation"
| "payment_reminder"
| "payment_received"
| "split_completed"
| "split_cancelled"
| "friend_request"
| "system_announcement";
export interface Notification {
id: string;
type: NotificationType;
title: string;
message: string;
read: boolean;
createdAt: string; // ISO date
actionUrl?: string;
metadata?: Record<string, unknown>;
}
export const NOTIFICATION_TYPE_LABELS: Record<NotificationType, string> = {
split_invitation: "Split invitation",
payment_reminder: "Payment reminder",
payment_received: "Payment received",
split_completed: "Split completed",
split_cancelled: "Split cancelled",
friend_request: "Friend request",
system_announcement: "System announcement",
};