SocialNotificationItem

Domain

Notification list item showing actor avatar, type icon overlay, message and timestamp. Unread items have a distinct background and dot indicator.

Unread (like) + Read (follow)

Preview
Lena Fischer

Lena Fischer liked your post

6m ago

Marco Rossi

Marco Rossi started following you

2d ago

Code
<div className="border border-border rounded-xl overflow-hidden divide-y divide-border">
  <SocialNotificationItem notification={{ type: 'LIKE',   isRead: false, actor: user, message: 'liked your post', ... }} />
  <SocialNotificationItem notification={{ type: 'FOLLOW', isRead: true,  actor: user, message: 'started following you', ... }} />
</div>

All notification types

Preview
Lena Fischer

Lena Fischer liked your post

6m ago

Lena Fischer

Lena Fischer liked your post

6m ago

Lena Fischer

Lena Fischer liked your post

6m ago

Lena Fischer

Lena Fischer liked your post

6m ago

Lena Fischer

Lena Fischer liked your post

6m ago

Code
{(['LIKE', 'COMMENT', 'FOLLOW', 'MENTION', 'SHARE'] as const).map((type) => (
  <SocialNotificationItem key={type} notification={{ type, isRead: false, actor: user, ... }} />
))}
Sourcemodules/domains/social/notification/SocialNotificationItem.tsx