UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

15 lines (14 loc) 662 B
import type { PropsWithChildren } from 'react'; import React 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;