feat: creating chats for cards and clients, sending and deleting text messages

This commit is contained in:
2025-03-27 15:15:06 +04:00
parent 3bbdacdd68
commit f6c55012bd
37 changed files with 967 additions and 21 deletions

View File

@@ -0,0 +1,24 @@
import { useChatContext } from "../contexts/ChatContext.tsx";
import { Drawer } from "@mantine/core";
import Chat from "../../../components/Chat/Chat.tsx";
const ClientChatDrawer = () => {
const { chat, setChat } = useChatContext();
if (!chat) return;
return (
<Drawer
opened={!!chat}
onClose={() => setChat(null)}
position={"right"}
size={"calc(50vw)"}
withCloseButton={false}
>
<Chat />
</Drawer>
);
};
export default ClientChatDrawer;