+ {notifications.length === 0 ? (
+
+ You're all caught up.
+
+ ) : (
+ notifications.map((notification) => (
+
+ !notification.read && markRead(notification.id)}
+ role="button"
+ tabIndex={0}
+ >
+ {notification.message}
+
+ {formatRelativeTime(notification.createdAt)}
+
+
+
+ dismiss(notification.id)}
+ >
+
+
+
+
+ ))
+ )}
+
+ {notifications.length > 0 &&