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,31 +0,0 @@
import React, { useState } from "react";
export default function MessageInput({ onSend }) {
const [text, setText] = useState("");
function handleSubmit(e) {
e.preventDefault();
if (!text.trim()) return;
onSend(text.trim());
setText("");
}
return (
<form onSubmit={handleSubmit} className="p-3 bg-slate-900">
<div className="flex gap-2">
<input
value={text}
onChange={(e) => setText(e.target.value)}
placeholder="Type a message..."
className="flex-1 rounded-md bg-slate-800 border border-slate-700 px-3 py-2 text-white focus:outline-none focus:ring-2 focus:ring-indigo-500"
/>
<button
type="submit"
className="bg-indigo-500 hover:bg-indigo-600 text-white px-4 py-2 rounded-md"
>
Send
</button>
</div>
</form>
);
}