UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

10 lines (9 loc) 469 B
import React from 'react'; import type { PropsWithChildren } from 'react'; import { Thread } from 'stream-chat'; export type ThreadContextValue = Thread | undefined; export declare const ThreadContext: React.Context<ThreadContextValue>; export declare const useThreadContext: () => Thread<import("stream-chat").DefaultGenerics> | undefined; export declare const ThreadProvider: ({ children, thread, }: PropsWithChildren<{ thread?: Thread; }>) => React.JSX.Element;