import { useState } from "react"; export default function MessageInput({ onSend }) { const [input, setInput] = useState(""); const handleSend = () => { if (!input.trim()) return; onSend(input); setInput(""); }; return (