UNPKG

@connectycube/chat-widget

Version:

A React component that seamlessly integrates ConnectyCube's real-time chat capabilities into your web applications. This widget offers an out-of-the-box solution for embedding chat features—such as instant messaging, user presence, and file sharing—withou

35 lines (34 loc) 1.46 kB
type AppNotificationStoreProps = { muted: boolean; showNotifications: boolean; playSound: boolean; webPushNotifications: boolean; webPushVapidPublicKey?: string; serviceWorkerPath?: string | URL; }; export interface AppNotificationStoreState extends AppNotificationStoreProps { setMuted: (muted: boolean) => void; resetMuted: () => void; setShowNotifications: (showNotifications: boolean) => void; resetShowNotifications: () => void; setPlaySound: (playSound: boolean) => void; resetPlaySound: () => void; setWebPushNotifications: (webPushNotifications: boolean) => void; resetWebPushNotifications: () => void; setWebPushVapidPublicKey: (webPushVapidPublicKey?: string) => void; resetWebPushVapidPublicKey: () => void; setServiceWorkerPath: (serviceWorkerPath?: string | URL) => void; resetServiceWorkerPath: () => void; } export declare const notificationStoreInitialState: { muted: boolean; showNotifications: boolean; playSound: boolean; webPushNotifications: boolean; webPushVapidPublicKey: undefined; serviceWorkerPath: undefined; }; declare const useAppNotificationStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AppNotificationStoreState>>; export declare const setAppNotificationStore: (state: Partial<AppNotificationStoreProps>) => void; export declare const resetAppNotificationStore: () => void; export default useAppNotificationStore;