mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-11 20:14:24 +01:00
10 lines
344 B
TypeScript
10 lines
344 B
TypeScript
|
|
import { createContext, useContext } from 'react';
|
||
|
|
import type { SearchResultData } from 'librechat-data-provider';
|
||
|
|
|
||
|
|
type SearchContext = {
|
||
|
|
searchResults?: { [key: string]: SearchResultData };
|
||
|
|
};
|
||
|
|
|
||
|
|
export const SearchContext = createContext<SearchContext>({} as SearchContext);
|
||
|
|
export const useSearchContext = () => useContext(SearchContext);
|