feat: Add support for Slack reaction and message notifications

This commit is contained in:
2024-12-16 20:44:09 +01:00
parent 735b2f5481
commit 33dc17483a
30 changed files with 2804 additions and 853 deletions

View File

@@ -2,12 +2,12 @@ import { GoogleMailThreadListItem } from "./GoogleMailThreadListItem";
import { NotificationListItemProps } from "../../../notification";
export function GoogleMailNotificationListItem({ notification, mutate }: NotificationListItemProps) {
if (notification.metadata.type !== "GoogleMail") return null;
if (notification.source_item.data.type !== "GoogleMailThread") return null;
return (
<GoogleMailThreadListItem
notification={notification}
googleMailThread={notification.metadata.content}
googleMailThread={notification.source_item.data.content}
mutate={mutate}
/>
);