UNPKG

softchatjs-react

Version:
21 lines (18 loc) 642 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import * as React from 'react'; import ChatClient from 'softchatjs-core'; import { ReactTheme } from '../theme/type.mjs'; type ContextType = { config: { theme: ReactTheme; }; client: ChatClient | null; }; declare const ChatClientContext: React.Context<ContextType>; declare const useChatClient: () => ContextType; declare const ChatClientProvider: ({ theme, children, client }: { theme?: ReactTheme; children: JSX.Element; client: ChatClient | null; }) => react_jsx_runtime.JSX.Element; export { ChatClientContext, ChatClientProvider, useChatClient };