import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Send, StopCircle } from "lucide-react"; interface ChatInputProps { inputMessage: string; setInputMessage: (message: string) => void; onSendMessage: () => void; isLimitReached: boolean; isLoading: boolean; chatType: "medical" | "psychological"; onEndConversation?: () => void; hasMessages?: boolean; } export const ChatInput = ({ inputMessage, setInputMessage, onSendMessage, isLimitReached, isLoading, chatType, onEndConversation, hasMessages = false, }: ChatInputProps) => { const handleKeyPress = (e: React.KeyboardEvent) => { if (e.key === "Enter" && !e.shiftKey) { e.preventDefault(); onSendMessage(); } }; const isPsychological = chatType === "psychological"; const placeholder = isPsychological ? "Comparte lo que tengas en mente..." : "Describe tu consulta médica aquí..."; return (