feat: initial chat history ui (#25)

This commit is contained in:
Kirjava
2024-07-31 22:21:40 +01:00
committed by GitHub
parent be315f685a
commit 41f3f202ec
11 changed files with 285 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ import { IconButton } from '~/components/ui/IconButton';
import { Workbench } from '~/components/workbench/Workbench.client';
import { classNames } from '~/utils/classNames';
import { Messages } from './Messages.client';
import { Menu } from '~/components/sidemenu/Menu.client';
import { SendButton } from './SendButton.client';
interface BaseChatProps {
@@ -50,6 +51,7 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
return (
<div ref={ref} className="relative flex h-full w-full overflow-hidden ">
<ClientOnly>{() => <Menu />}</ClientOnly>
<div ref={scrollRef} className="flex overflow-scroll w-full h-full">
<div id="chat" className="flex flex-col w-full h-full px-6">
{!chatStarted && (