Rev 5337 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
/* eslint-disable react/prop-types */import React from 'react'import Spinner from '../../shared/loading-spinner/Spinner'import Message from './Message'const ChatList = ({messages = [],currentPage = 1,lastPage = 1,conversationList = null,loader = null}) => {return (<div className="chat-conversation" ref={conversationList}><ul className="conversation-list">{currentPage < lastPage &&<li className='position-relative' ref={loader}><Spinner /></li>}{messages.map((message) => (<li key={message.id}><Message message={message} /></li>))}</ul></div>)}export default ChatList