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

22 lines (21 loc) 801 B
export type DefaultChat = { id: string; opponentUserId: number; type: '1on1' | 'group'; name?: string; metadata?: { [key: string]: string; }; }; export type AppDefaultChatStateProps = { defaultChat?: DefaultChat | null; }; interface AppDefaultChatState extends AppDefaultChatStateProps { setDefaultChat: (defaultChat?: DefaultChat) => void; resetDefaultChat: () => void; } export declare const appDefaultChatInitialState: AppDefaultChatStateProps; declare const useDefaultChatStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AppDefaultChatState>>; export declare const setAppDefaultChatStore: (state: Partial<AppDefaultChatStateProps>) => void; export declare const resetAppDefaultChatStore: () => void; export default useDefaultChatStore;