Notifications
{recent.length === 0 ? (
No notifications yet
) : (
recent.map(n => (
{
markRead(n.notification_id)
if (n.link) { navigate(n.link); onClose() }
}}
>
{typeIcon(n.type)}
{typeTitle(n.type)}
{n.message}
{timeAgo(n.created_at)}
{!n.is_read && (
)}
))
)}
)
}