Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled
14 lines
282 B
TypeScript
14 lines
282 B
TypeScript
import { createContext } from "react";
|
|
|
|
export interface ChatContextValue {
|
|
isChatOpen: boolean;
|
|
openChat: () => void;
|
|
closeChat: () => void;
|
|
}
|
|
|
|
export const ChatContext = createContext<ChatContextValue>({
|
|
isChatOpen: false,
|
|
openChat: () => {},
|
|
closeChat: () => {},
|
|
});
|