import react, { useState } from 'react'; import { input } from './components/ui/input'; import { textarea } from './components/ui/textarea'; import { button } from './components/ui/button'; const ircchat = () => { const [username, setUsername] = useState(''); const [message, setMessage] = useState(''); const [chatLog, setChatLog] = useState([]); const handleUsernameChange = (e: react.ChangeEvent) => { setUsername(e.target.value); }; const handleMessageChange = (e: react.ChangeEvent) => { setMessage(e.target.value); }; const handleSendMessage = () => { setChatLog([...chatLog, { username, message }]); setMessage(''); }; return (