mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-17 11:21:35 +03:00
9bb7ccf651
* feat: add providers mocks * test(<ChatPage/>: add render test using providers
30 lines
897 B
TypeScript
30 lines
897 B
TypeScript
"use client";
|
|
|
|
import PageHeading from "@/lib/components/ui/PageHeading";
|
|
import { ChatProvider } from "@/lib/context/ChatProvider";
|
|
|
|
import { ChatInput, ChatMessages } from "./components";
|
|
|
|
const ChatPage = (): JSX.Element => {
|
|
return (
|
|
<main className="flex flex-col w-full pt-10" data-testid="chat-page">
|
|
<section className="flex flex-col flex-1 items-center w-full h-full min-h-[70vh]">
|
|
<PageHeading
|
|
title="Chat with your brain"
|
|
subtitle="Talk to a language model about your uploaded data"
|
|
/>
|
|
<ChatProvider>
|
|
<div className="relative w-full flex flex-col flex-1 items-center">
|
|
<div className="flex-1 w-full flex flex-col items-center">
|
|
<ChatMessages />
|
|
</div>
|
|
<ChatInput />
|
|
</div>
|
|
</ChatProvider>
|
|
</section>
|
|
</main>
|
|
);
|
|
};
|
|
|
|
export default ChatPage;
|