mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-20 06:01:03 -05:00
9 lines
277 B
TypeScript
9 lines
277 B
TypeScript
import * as React from "react";
|
|
import type { ChatContextValue } from "./chat-provider-types";
|
|
|
|
export const ChatContext = React.createContext<ChatContextValue | null>(null);
|
|
|
|
export function useChatContext(): ChatContextValue | null {
|
|
return React.useContext(ChatContext);
|
|
}
|