diff --git a/src/app/(notifications)/notification-history/[id]/page.tsx b/src/app/(notifications)/notification-history/[id]/page.tsx
index 708de6b..a5e3e14 100644
--- a/src/app/(notifications)/notification-history/[id]/page.tsx
+++ b/src/app/(notifications)/notification-history/[id]/page.tsx
@@ -1,39 +1,188 @@
"use client";
-import Loading from "@/components/loading";
+
import Breadcrumb from "@/components/Breadcrumbs/Breadcrumb";
-import { NotificationDetailsCard } from "@/components/ui/notification-details-card";
-import { useGetNotificationDetails } from "@/hooks/queries/useNotificationQueries";
-import { BreadcrumbItem } from "@/types/shared";
-import { use } from "react";
+import Loading from "@/components/loading";
+import Status from "@/components/ui/Status";
+import { BellIcon } from "@/components/Layouts/header/notification/icons";
+import Link from "next/link";
+import { useNotificationDetailsPresenter } from "./useNotificationDetailsPresenter";
interface IProps {
params: Promise<{ id: string }>;
}
const NotificationDetailsPage = ({ params }: IProps) => {
- const { id } = use(params);
- const { data, isLoading } = useGetNotificationDetails(id);
+ const { isLoading, rootRef, breadcrumbItems, meta, details } =
+ useNotificationDetailsPresenter({ params });
- const breadcrumbItems: BreadcrumbItem[] = [
- {
- href: "/",
- name: "Dashboard",
- },
- {
- href: "/notification-history",
- name: "Notification history",
- },
- {
- href: `/notification-history/${id}`,
- name: "Notification details",
- },
- ];
if (isLoading) return
+ {item.value} +
+ )} +{currentNotification?.message}
++ {unixToDate({ + unix: currentNotification.created_at, + hasTime: true, + })} +
+ )} +