mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-16 18:52:12 +03:00
dc64470d5d
* 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
29 lines
862 B
TypeScript
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>
|
|
);
|
|
}
|