NotificationsPage
NotificationsPage — a person's notifications under day headings (Upcoming, Today, Yesterday, Earlier), unread ones marked, with Mark all read: the twin of genesis-ui-native's NotificationsPage, with the same `items`, `onMarkAllRead` and empty words. The day groups are genesis-core's (`groupNotificationsByDay`), so both platforms put a notification under the same heading. Presentational: it takes the items. genesis-notifications' NotificationFeed is the one that loads them from the notifications tables.
packages/ui/src/components/layout/notifications-page.tsx
@marktiderman/genesis-ui/layoutimport { NotificationsPage } from "@marktiderman/genesis-ui/layout";react-docgen-typescript.NotificationsPage
NotificationsPage — a person's notifications under day headings (Upcoming, Today, Yesterday, Earlier), unread ones marked, with Mark all read: the twin of genesis-ui-native's NotificationsPage, with the same `items`, `onMarkAllRead` and empty words. The day groups are genesis-core's (`groupNotificationsByDay`), so both platforms put a notification under the same heading. Presentational: it takes the items. genesis-notifications' NotificationFeed is the one that loads them from the notifications tables.
| Prop | Type | Default | Description |
|---|---|---|---|
| items* | readonly NotificationItem[] | — | |
| className | string | — | |
| dayLabels | Partial<Record<NotificationDayBucket, string>> | {} | The day headings' words, by bucket. |
| emptyBody | string | When something needs your attention, it'll show up here. | |
| emptyState | ReactNode | — | Replaces the empty state. |
| emptyTitle | string | No notifications yet | |
| isLoading | boolean | false | |
| markAllReadLabel | string | Mark all read | |
| now | Date | — | The moment the day headings count from. Default now, read in the browser. |
| onMarkAllRead | (() => void) | — | Shows Mark all read in the header. |
| testID | string | notifications-page | |
| timeZone | string | — | The zone whose days the headings count (an IANA name). Default the browser's. Pass it with `now` to group on the server too; without both, the server renders the list without headings and the browser adds them once it has hydrated, so the server's clock and zone never decide which day a notification is on. |
| title | ReactNode | Notifications | Default "Notifications". |