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; onError: (message: string) => void; } export default function TestNotification({ notificationTestId, onError }: TestNotificationProps) { const { getNotificationTest, notificationTest } = useNotifications(); const checkNotificationTest = async () => { try { await getNotificationTest(notificationTestId); } catch (error) { onError(error as string); } } useEffect(() => { checkNotificationTest(); }, [notificationTestId]); return (