Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev Autor Línea Nro. Línea
3730 stevensc 1
/* eslint-disable react/prop-types */
1 www 2
import React from "react";
3
import { profileTypes } from "../../Profile.types";
4
import ProfileImg from "./profile-img/ProfileImg";
5
import SocialNetworks from "./social-networks/SocialNetworks";
6
 
3730 stevensc 7
const ProfileInfo = ({
8
  entityId = '',
9
  profileId = '',
10
  image = '',
11
  following = '',
12
  follower = '',
13
  facebook = '',
14
  twitter = '',
15
  instagram = '',
16
  imageProfileCover = '',
17
  profileType = ''
18
}) => {
1 www 19
 
20
  let status;
21
  switch (profileType) {
22
    case profileTypes.USER:
23
      status = (
24
        <ul className="flw-status">
25
          <li>
26
            <span>Siguiendo</span>
27
            <b>{following}</b>
28
          </li>
29
          <li>
30
            <span>Seguidores</span>
31
            <b>{follower}</b>
32
          </li>
33
        </ul>
34
      );
35
      break;
36
    case profileTypes.COMPANY:
37
      status = (
38
        <ul className="flw-status">
39
          <li>
40
            <span>Seguidores</span>
41
            <b>{follower}</b>
42
          </li>
43
        </ul>
44
      );
45
      break;
46
 
47
    default:
48
      status = <ul className="flw-status">Sin Estado</ul>;
49
      break;
50
  }
51
 
52
  return (
53
    <div className="user_profile">
54
      <ProfileImg
55
        entityId={entityId}
56
        profileId={profileId}
57
        image={image}
58
        imageProfileCover={imageProfileCover}
59
        profileType={profileType}
60
      />
61
      <div className="user_pro_status">{status}</div>
62
      <SocialNetworks
63
        facebook={facebook}
64
        twitter={twitter}
65
        instagram={instagram}
66
        entityId={entityId}
67
        profileId={profileId}
68
        profileType={profileType}
69
      />
70
    </div>
71
  );
72
};
73
 
74
export default ProfileInfo;