stream-chat-react
Version:
React components to create chat conversations or livestream style chat
14 lines • 690 B
TypeScript
import type { Notification } from 'stream-chat';
export type UseSystemNotificationsFilter = (notification: Notification) => boolean;
export type UseSystemNotificationsOptions = {
/**
* Applied after the built-in filter that keeps only notifications tagged for the system banner.
*/
filter?: UseSystemNotificationsFilter;
};
/**
* Subscribes to `client.notifications` and returns only **system** banner notifications
* (same subset `NotificationList` excludes from toasts). Optional `filter` narrows further.
*/
export declare const useSystemNotifications: (options?: UseSystemNotificationsOptions) => Notification[];
//# sourceMappingURL=useSystemNotifications.d.ts.map