UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

14 lines (13 loc) 637 B
import React, { PropsWithChildren } from 'react'; import type { SearchSource } from 'stream-chat'; export type SearchSourceResultsContextValue = { searchSource: SearchSource; }; export declare const SearchSourceResultsContext: React.Context<SearchSourceResultsContextValue | undefined>; /** * Context provider for components rendered within the `SearchSourceResults` */ export declare const SearchSourceResultsContextProvider: ({ children, value, }: PropsWithChildren<{ value: SearchSourceResultsContextValue; }>) => React.JSX.Element; export declare const useSearchSourceResultsContext: () => SearchSourceResultsContextValue;