MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / deleteNotification

Function deleteNotification

src/components/NotificationDropdown.tsx:121–130  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

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 {

Callers 1

NotificationDropdownFunction · 0.85

Calls 1

fetchNotificationsFunction · 0.85

Tested by

no test coverage detected