@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
13 lines (12 loc) • 469 B
TypeScript
export interface NotificationContextType {
/**
* Indicates whether a notification has been read, affects styling.
*/
isRead: boolean;
}
export declare const NotificationContext: import('react').Context<NotificationContextType | null>;
/**
* Returns NotificationContextType from context and validates its presence.
* @throws {Error} When used outside NotificationRoot..
*/
export declare const useNotificationContext: () => NotificationContextType;