v3: added a chatbox
Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled
Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled
This commit is contained in:
13
src/contexts/ChatContext.ts
Normal file
13
src/contexts/ChatContext.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { createContext } from "react";
|
||||
|
||||
export interface ChatContextValue {
|
||||
isChatOpen: boolean;
|
||||
openChat: () => void;
|
||||
closeChat: () => void;
|
||||
}
|
||||
|
||||
export const ChatContext = createContext<ChatContextValue>({
|
||||
isChatOpen: false,
|
||||
openChat: () => {},
|
||||
closeChat: () => {},
|
||||
});
|
||||
Reference in New Issue
Block a user