Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5913 | | Comparar con el anterior | Ultima modificación | Ver Log |

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