mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-20 01:06:11 +01:00
7 lines
338 B
TypeScript
7 lines
338 B
TypeScript
|
|
import { createContext, useContext } from 'react';
|
||
|
|
import useAddedResponse from '~/hooks/Chat/useAddedResponse';
|
||
|
|
type TAddedChatContext = ReturnType<typeof useAddedResponse>;
|
||
|
|
|
||
|
|
export const AddedChatContext = createContext<TAddedChatContext>({} as TAddedChatContext);
|
||
|
|
export const useAddedChatContext = () => useContext(AddedChatContext);
|