mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-06 21:34:28 -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);
|
|
}
|