chatgpt is taking shape, convo persists, layout mimics original

This commit is contained in:
Daniel Avila 2023-02-05 19:41:24 -05:00
parent 3a199757ae
commit f889f23792
9 changed files with 161 additions and 35 deletions

View file

@ -1,4 +1,5 @@
import React, { useState } from 'react';
import Messages from './components/Messages';
import TextChat from './components/TextChat';
const App = () => {
@ -8,9 +9,8 @@ const App = () => {
<div className="flex h-screen">
<div className="w-80 bg-slate-800"></div>
<div className="flex h-full w-full flex-col bg-gray-50 ">
<div className="flex-1 overflow-y-auto"></div>
{/* <textarea className="m-10 h-16 p-4" onChange={(e) => console.log(e.target.value)}/> */}
<TextChat />
<Messages messages={messages} />
<TextChat messages={messages} setMessages={setMessages}/>
</div>
</div>
);