import { useState } from "react"; import { Send } from "lucide-react"; import { Button } from "@/routes/ui/button"; interface ChatInputProps { onSend: (content: string) => void; disabled?: boolean; placeholder?: string; } /** * Chat input component with send button */ export function ChatInput({ onSend, disabled, placeholder }: ChatInputProps) { const [input, setInput] = useState(""); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); if (input.trim() && !disabled) { onSend(input.trim()); setInput(""); } }; return (
); }