setActiveTab(v as TabKey)}>
Personal
{personalUnread > 0 ? (
{personalUnread > 99 ? '99+' : personalUnread}
) : null}
System
{systemTotal > 0 ? (
0
? 'bg-destructive/15 text-destructive'
: 'bg-amber-500/15 text-amber-600',
)}
>
{systemTotal > 99 ? '99+' : systemTotal}
) : null}
{/* ── Personal tab ── */}
Your notifications
{personalUnread > 0 ? (
) : (
View all
)}
{notifLoading ? (
Loading…
) : notifications.length === 0 ? (
No notifications
) : (
{notifications.map((n) => (
markRead.mutate(id)}
/>
))}
)}
{/* ── System tab ── */}
Active alerts
View all
{alertsLoading ? (
Loading…
) : systemTop.length === 0 ? (
) : (
{systemTop.map((a) => (
))}
)}