quivr/frontend/app/chat/[chatId]/page.tsx
Mamadou DICKO dc64470d5d
Ux improvment (#382)
* feat: make chat list hidden on mobile by default

* feat: autoclose chat list on click

* feat: move footer to chat lists bottom when user is logged in

* feat: fix header when user is logged in

* chore: refacto ChatMessages

* feat: reverse chat list display on fetch

* feat: fix new chat button
2023-06-27 11:28:09 +02:00

29 lines
862 B
TypeScript

/* eslint-disable */
"use client";
import PageHeading from "@/lib/components/ui/PageHeading";
import { ChatInput, ChatMessages } from "../components";
import { ChatProvider } from "./context/ChatContext";
export default function ChatPage() {
return (
<main className="flex flex-col w-full pt-10">
<section className="flex flex-col flex-1 items-center w-full h-full min-h-screen">
<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>
);
}