stream-chat-react
Version:
React components to create chat conversations or livestream style chat
6 lines (5 loc) • 316 B
TypeScript
import type { ThreadState } from 'stream-chat';
/**
* @description returns thread state, prioritizes `ThreadListItemContext` falls back to `ThreadContext` if not former is not present
*/
export declare const useThreadState: <T extends readonly unknown[]>(selector: (nextValue: ThreadState) => T) => T | undefined;