mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-02 14:20:18 +01:00
7 lines
337 B
TypeScript
7 lines
337 B
TypeScript
|
|
import { createContext, useContext } from 'react';
|
||
|
|
import useAgentsMap from '~/hooks/Agents/useAgentsMap';
|
||
|
|
type AgentsMapContextType = ReturnType<typeof useAgentsMap>;
|
||
|
|
|
||
|
|
export const AgentsMapContext = createContext<AgentsMapContextType>({} as AgentsMapContextType);
|
||
|
|
export const useAgentsMapContext = () => useContext(AgentsMapContext);
|