//geminiclone/src/components/ui/ChatInput.tsx "use client"; import { useState } from "react"; import { Settings, Send, X } from "lucide-react"; interface ChatInputProps { onSend: (message: string) => void; onOpenSettings: () => void; } export default function ChatInput({ onSend, onOpenSettings }: ChatInputProps) { const [message, setMessage] = useState(""); const handleChange = (e: React.ChangeEvent) => { setMessage(e.target.value); }; const handleSend = () => { if (message.trim()) { onSend(message.trim()); setMessage(""); } }; const handleKeyPress = (e: React.KeyboardEvent) => { if (e.key === "Enter") { handleSend(); } }; const handleClear = () => { setMessage(""); }; return (