```javascript import { useState } from 'react' import { Send, Loader } from 'react-feather' export default function ChatInterface({ messages, onSend, isLoading }) { const [input, setInput] = useState('') const handleSubmit = (e) => { e.preventDefault() if (!input.trim()) return onSend(input) setInput('') } return (