import { useState } from 'react'; export default function ChatInput({ status, onSubmit, stop, }: { status: string; onSubmit: (text: string) => void; stop?: () => void; }) { const [text, setText] = useState(''); return (