Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6831 | Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
6830 stevensc 1
/* eslint-disable react/prop-types */
2
import React from 'react'
3
import Avatar from '../../../../shared/Avatar/Avatar'
4
import parse from 'html-react-parser'
5
import StatItem from './StatItem'
6
 
7
const UserInfo = ({
8
  cover = '',
9
  image = '',
10
  fullName = '',
11
  description = '',
12
  visits = 0,
13
  connections = 0,
14
}) => {
15
  return (
16
    <div className="sidebar__top">
17
      {cover && (
18
        <img
19
          src="./static/profile_2.jpg"
20
          alt="Profile cover"
21
          className="sidebar__cover"
22
        />
23
      )}
24
      <Avatar imageUrl={image} size="xl" name={fullName} />
25
      <h2>{parse(fullName)}</h2>
26
      {parse(description)}
27
      <StatItem
28
        title={`¿${LABELS.WHO_HAS_SEEN_MY_PROFILE}?`}
29
        number={visits}
30
        url="/profile/people-viewed-profile"
31
      />
32
      <StatItem
33
        title={LABELS.CONNECTIONS}
34
        number={connections}
35
        url="/connection/my-connections"
36
      />
37
    </div>
38
  )
39
}
40
 
41
export default UserInfo