import { Send, StopCircle } from "lucide-react" import { Button } from "../../ui/button" interface ChatInputProps { input: string setInput: (input: string) => void isGenerating: boolean handleSend: () => void handleStopGeneration: () => void } export default function ChatInput({ input, setInput, isGenerating, handleSend, handleStopGeneration, }: ChatInputProps) { return (
setInput(e.target.value)} onKeyPress={(e) => e.key === "Enter" && !isGenerating && handleSend()} className="flex-grow p-2 border rounded-lg min-w-0 bg-input" placeholder="Type your message..." disabled={isGenerating} /> {isGenerating ? ( ) : ( )}
) }