stream-chat-react
Version:
React components to create chat conversations or livestream style chat
10 lines (9 loc) • 435 B
TypeScript
import React from 'react';
import type { PropsWithChildren } from 'react';
import type { Thread } from 'stream-chat';
export type ThreadContextValue = Thread | undefined;
export declare const ThreadContext: React.Context<ThreadContextValue>;
export declare const useThreadContext: () => ThreadContextValue;
export declare const ThreadProvider: ({ children, thread, }: PropsWithChildren<{
thread?: Thread;
}>) => React.JSX.Element;