mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-18 08:28:10 +01:00
7 lines
297 B
TypeScript
7 lines
297 B
TypeScript
|
|
import { createContext, useContext } from 'react';
|
||
|
|
import useChatHelpers from '~/hooks/useChatHelpers';
|
||
|
|
type TChatContext = ReturnType<typeof useChatHelpers>;
|
||
|
|
|
||
|
|
export const ChatContext = createContext<TChatContext>({} as TChatContext);
|
||
|
|
export const useChatContext = () => useContext(ChatContext);
|