fix(repo): shoud be fixed now

This commit is contained in:
devaine 2025-10-18 17:21:36 -05:00
commit 5d0d88c535
No known key found for this signature in database
GPG key ID: 4BA6E50E8768348F
26 changed files with 87 additions and 496 deletions

View file

@ -1,34 +0,0 @@
import React, { useState } from "react";
import ChatHeader from "./ChatHeader";
import ChatWindow from "./ChatWindow";
import MessageInput from "./MessageInput";
export default function ChatLayout() {
const [messages, setMessages] = useState([
{
role: "assistant",
content: "Hello — I can help you with code, explanations, and more.",
},
]);
function handleSend(text) {
const userMsg = { role: "user", content: text };
setMessages((s) => [...s, userMsg]);
// fake assistant reply after short delay
setTimeout(() => {
setMessages((s) => [
...s,
{ role: "assistant", content: `You said: ${text}` },
]);
}, 600);
}
return (
<div className="flex flex-col h-[80vh] w-full max-w-3xl mx-auto rounded-lg overflow-hidden shadow-lg border border-slate-700">
<ChatHeader />
<ChatWindow messages={messages} />
<MessageInput onSend={handleSend} />
</div>
);
}