+
+
+
+ Back
+
+ {unreadCount > 0 && (
+
+ )}
+
+
+
Notifications
+
+ Manage which notifications you receive in{' '}
+
+ Organization Settings → Notifications
+
+
+
+ {loading ? (
+
+ ) : error ? (
+
+ {error}
+
+ ) : notifications.length === 0 ? (
+
+
No notifications yet
+
+ Manage which notifications you receive in{' '}
+
+ Organization Settings → Notifications
+
+
+
+ ) : (
+
+ {notifications.map((n) => (
+
+ {n.link_url ? (
+
handleNotificationClick(n)}
+ className={`block p-4 rounded-xl border border-neutral-200 dark:border-neutral-800 hover:bg-neutral-50 dark:hover:bg-neutral-800/50 transition-colors ${!n.read ? 'bg-brand-orange/5 dark:bg-brand-orange/10' : ''}`}
+ >
+
+ {getTypeIcon(n.type)}
+
+
+ {n.title}
+
+ {n.body && (
+
{n.body}
+ )}
+
+ {formatTimeAgo(n.created_at)}
+
+
+
+
+ ) : (
+
handleNotificationClick(n)}
+ onKeyDown={(e) => e.key === 'Enter' && handleNotificationClick(n)}
+ className={`block p-4 rounded-xl border border-neutral-200 dark:border-neutral-800 hover:bg-neutral-50 dark:hover:bg-neutral-800/50 cursor-pointer ${!n.read ? 'bg-brand-orange/5 dark:bg-brand-orange/10' : ''}`}
+ >
+
+ {getTypeIcon(n.type)}
+
+
+ {n.title}
+
+ {n.body && (
+
{n.body}
+ )}
+
+ {formatTimeAgo(n.created_at)}
+
+
+
+
+ )}
+
+ ))}
+ {hasMore && (
+
+
+
+ )}
+
+ )}
+