UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

24 lines 1.5 kB
import type { Notification } from 'stream-chat'; import type { PropsWithChildrenOnly } from '../../types/types'; import type { NotificationTargetPanel } from './notificationTarget'; import type { NotificationListFilter } from './NotificationList'; export type NotificationDisplayFilterParams = { /** Fallback panel used by the receiving NotificationList when a notification has no explicit target. */ fallbackPanel?: NotificationTargetPanel; /** Local NotificationList filter. Runs only after the display filter accepts the notification. */ filter?: NotificationListFilter; /** Notification being evaluated after panel/fallback routing matched it to this list. */ notification: Notification; /** Panel of the NotificationList currently evaluating the notification. */ panel?: NotificationTargetPanel; }; export type NotificationDisplayFilter = (params: NotificationDisplayFilterParams) => boolean; export type NotificationConfigurationContextValue = { displayFilter: NotificationDisplayFilter; }; export type NotificationConfigurationProviderProps = PropsWithChildrenOnly & { displayFilter?: NotificationDisplayFilter; }; export declare const NotificationConfigurationProvider: ({ children, displayFilter, }: NotificationConfigurationProviderProps) => import("react/jsx-runtime").JSX.Element; export declare const useNotificationConfigurationContext: () => NotificationConfigurationContextValue; //# sourceMappingURL=NotificationConfigurationContext.d.ts.map