import { useState, useRef } from "react" import { Paperclip, Mic, Send, X } from "lucide-react" export default function InputBar({ onSend, loading }) { const [text, setText] = useState("") const [image, setImage] = useState(null) const fileRef = useRef(null) const handleSend = () => { if (!text.trim() && !image) return if (loading) return onSend(text.trim(), image) setText("") setImage(null) } return (