feat: integrasi notifikasi backend dengan frontend

This commit is contained in:
Rafi Athallah
2026-06-27 19:27:16 +07:00
parent 49b8a288f0
commit cafcf6314a
5 changed files with 309 additions and 55 deletions
+19
View File
@@ -0,0 +1,19 @@
export interface BackendNotification {
id: number;
id_user: number | null;
id_admin: number | null;
title: string;
message: string;
is_read: boolean;
created_at: string;
}
export interface UINotification {
id: number;
type: string; // "new-task" | "achievement" | "system"
title: string;
time: string;
isNew: boolean;
group: "TODAY" | "YESTERDAY";
description: string;
}