import { Bell, CheckCircle2, Clock, X } from "lucide-react" import useNotifications from "@/hooks/useNotifications"; import { useState } from "react"; import { useEffect } from "react"; interface TestNotificationProps { notificationTestId: number; } export default function TestNotification({ notificationTestId }: TestNotificationProps) { const { getNotificationTest, notificationTest } = useNotifications(); const checkNotificationTest = async () => { await getNotificationTest(notificationTestId); } useEffect(() => { checkNotificationTest(); }, [notificationTestId]); return (

Test Notification

Verify your notification settings

A notification test has been sent to the selected notification provider.

You can click the button below to check the status of the notification test.

Status: {!notificationTest?.sent && !notificationTest?.success && (
Pending
)} {notificationTest?.sent && !notificationTest?.success && (
Failed
)} {notificationTest?.sent && notificationTest?.success && (
Success
)}
) }