Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5366 | Rev 5913 | 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'
5366 stevensc 3
import parse from 'html-react-parser'
4497 stevensc 4
import Avatar from '../../../../../shared/Avatar/Avatar'
5366 stevensc 5
import StatItem from '../../../../../dashboard/templates/linkedin/sidebar/StatItem'
4497 stevensc 6
 
7
const GroupInfo = ({
5366 stevensc 8
  cover = '',
9
  image = '',
10
  name = '',
11
  overview = '',
12
  groupId = '',
13
  totalMembers = '',
14
  groupType = '',
15
  accessibility = '',
16
  type = ''
4497 stevensc 17
}) => {
5366 stevensc 18
  return (
19
        <div className={`sidebar__top ${cover && 'pt-0'}`}>
20
            {cover && <img src={`/storage/type/${type}-cover/code/${groupId}/${cover ? `filename/${cover}` : ''}`} alt='Profile cover' className='sidebar__cover' />}
21
            <Avatar imageUrl={`/storage/type/${type}/code/${groupId}/${image ? `filename/${image}` : ''}`} size='xl' name={name} />
22
            <h2>{parse(name)}</h2>
5367 stevensc 23
            <p>{`${groupType} - ${accessibility}`}</p>
5366 stevensc 24
            {parse(overview)}
25
            <StatItem title='Número de miembros' number={totalMembers} url='#' />
26
        </div>
27
  )
4497 stevensc 28
}
29
 
5366 stevensc 30
export default GroupInfo