import { useRef } from 'react'; import Message from './Message'; import FileUploadProgress from './FileUploadProgress'; function ChatView({ connectedPeer, currentConnectionId, messages, messageInput, setMessageInput, channelReady, logs, fileUploadProgress, onSendMessage, onFileSelect, onDisconnect, onDownloadFile, onCancelUpload }) { const fileInputRef = useRef(null); return (
Peer: {connectedPeer || 'Unknown'} • ID: {currentConnectionId}
No messages yet. Start chatting!
) : ( messages.map((msg, idx) => (