"use client" import {Eye} from "lucide-react"; import {useState} from "react"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog"; import {Button} from "@/components/ui/button"; import {Separator} from "@/components/ui/separator"; import {NotificationLogWithRelations} from "@/db/services/notification-log"; type NotificationLogModalProps = { notificationLog: NotificationLogWithRelations; } export const NotificationLogModal = ({notificationLog}: NotificationLogModalProps) => { const [open, setOpen] = useState(false); return ( Notification details Details of the notification sent
Title:{" "} {notificationLog.content.title}
Message:{" "} {notificationLog.content.message}
{notificationLog.payload && ( <>
{JSON.stringify(notificationLog.payload, null, 2)}
)}
) }