INotificationCenterHook
@spartanfx/react / INotificationCenterHook
Interface: INotificationCenterHook
NotificationCenter hook return type
Properties
| Property | Type | Description |
|---|---|---|
addNotification | (payload, options?) => Promise<void> | Add a new notification |
clear | () => Promise<void> | Clear all notifications |
error | Error | Error state |
items | INotificationItem[] | Current notifications |
loading | boolean | Loading state |
markAllRead | () => Promise<void> | Mark all notifications as read |
markRead | (id) => Promise<void> | Mark notification as read |
refresh | () => Promise<void> | Refresh/reload notifications |
remove | (id) => Promise<void> | Remove a notification |
unreadCount | number | Unread count |