(id: string)
| 119 | }; |
| 120 | |
| 121 | const deleteNotification = async (id: string) => { |
| 122 | try { |
| 123 | await fetch(`/api/notifications?id=${id}`, { |
| 124 | method: "DELETE", |
| 125 | }); |
| 126 | await fetchNotifications(); |
| 127 | } catch (error) { |
| 128 | console.error("Failed to delete notification:", error); |
| 129 | } |
| 130 | }; |
| 131 | |
| 132 | const clearRead = async () => { |
| 133 | try { |
no test coverage detected