interface ChatInputProps { input: string; setInput: (value: string) => void; handleSubmit: (e: React.FormEvent) => Promise; isLoading: boolean; } export const ChatInput = ({ input, setInput, handleSubmit, isLoading }: ChatInputProps) => (
setInput(e.target.value)} placeholder="What's on your mind?" className="w-full px-4 py-3 rounded-xl bg-white border border-gray-200 focus:ring-1 focus:ring-[#1DA2FF] focus:outline-none hover:ring-[#1DA2FF] hover:ring-1 transition duration-200 ease-linear" disabled={isLoading} />
Press to send
);