Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4533 | Rev 4619 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
4497 stevensc 1
/* eslint-disable react/prop-types */
2
import React from 'react'
3
import parse from "html-react-parser";
4
import Avatar from '../../../../../shared/Avatar/Avatar'
5
import StatItem from '../../../../../dashboard/templates/linkedin/sidebar/StatItem';
6
 
7
const GroupInfo = ({
8
    cover = '',
9
    image = '',
10
    name = '',
11
    overview = '',
12
    groupId = '',
13
    totalMembers = '',
14
    groupType = '',
4533 stevensc 15
    accessibility = '',
16
    type = ''
4497 stevensc 17
}) => {
18
    return (
19
        <>
20
            <div className={`sidebar__top ${!cover && 'pt-3'}`}>
4533 stevensc 21
                {cover && <img src={`/storage/type/${type}-cover/code/${groupId}/${cover ? `filename/${cover}` : ""}`} alt='Profile cover' className='sidebar__cover' />}
22
                <Avatar imageUrl={`/storage/type/${type}/code/${groupId}/${image ? `filename/${image}` : ""}`} size='xl' name={name} />
4497 stevensc 23
                <h2>{parse(name)}</h2>
24
                <span>{`${groupType} - ${accessibility}`}</span>
25
                {parse(overview)}
26
            </div>
27
            <div className='sidebar__stats'>
4606 stevensc 28
                <StatItem title='Número de miembros' number={totalMembers} url='' />
4497 stevensc 29
            </div>
30
        </>
31
    )
32
}
33
 
34
export default GroupInfo