File size: 344 Bytes
f0743f4
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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);