Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3770 stevensc 1
/* eslint-disable react/prop-types */
1748 stevensc 2
import React, { useState } from 'react'
3
 
1749 stevensc 4
const MessageBarHead = ({ selectedConversation, handleShowConversation }) => {
1748 stevensc 5
 
6
    const [showOptions, setShowOptions] = useState(false)
7
 
8
    return (
9
        <div className="message-bar-head">
1880 steven 10
            <div className="usr-msg-details border-none">
1748 stevensc 11
                <i
12
                    className="fas fa-angle-left icon msgs-hide"
13
                    onClick={() => handleShowConversation(false)}
2751 stevensc 14
                ></i>
1748 stevensc 15
                <div className="usr-ms-img">
3770 stevensc 16
                    {selectedConversation.image &&
17
                        <img src={selectedConversation.image} alt={`${selectedConversation.name} avatars`} />
1906 steven 18
                    }
1748 stevensc 19
                </div>
20
                <div className="usr-mg-info">
21
                    <h3>{selectedConversation.name}</h3>
22
                </div>
23
            </div>
24
            <div className="ed-opts" onClick={() => setShowOptions(!showOptions)}>
25
                <i className="la la-ellipsis-v icon"></i>
26
                <ul className={showOptions ? "ed-options active" : "ed-options"}>
27
                    <li>
28
                        <a href="#" className="btn-clean-messages" title="">Limpiar </a>
29
                    </li>
30
                    <li>
31
                        <a href="#" className="btn-delete-conversation" title="">Borrar</a>
32
                    </li>
33
                    <li>
34
                        <a href="#" className="btn-block-user" title="">Bloquear</a>
35
                    </li>
36
                </ul>
37
            </div>
38
        </div>
39
    )
40
}
41
export default MessageBarHead