Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev Autor Línea Nro. Línea
3694 stevensc 1
import React from 'react';
2
import { Avatar, styled, Typography } from '@mui/material';
3
import VisibilityOutlined from '@mui/icons-material/VisibilityOutlined';
4
import MapOutlined from '@mui/icons-material/MapOutlined';
5
import ShareOutlined from '@mui/icons-material/ShareOutlined';
674 stevensc 6
 
3694 stevensc 7
import Widget from '@components/UI/Widget';
676 stevensc 8
 
2854 stevensc 9
const Row = styled('div')(() => ({
10
  display: 'flex',
11
  justifyContent: 'space-around',
12
  alignItems: 'center'
3694 stevensc 13
}));
674 stevensc 14
 
3694 stevensc 15
export default function ProfileInfo({ image, fullName, visits, country, connections }) {
5 stevensc 16
  return (
2854 stevensc 17
    <Widget>
2995 stevensc 18
      <Widget.Body>
19
        <Avatar
20
          src={image}
2996 stevensc 21
          alt={`${fullName} profile-image`}
2995 stevensc 22
          sx={{ margin: '0 auto', width: 100, height: 100 }}
23
        />
2997 stevensc 24
        <Typography variant='h2' sx={{ textAlign: 'center' }}>
25
          {fullName}
26
        </Typography>
674 stevensc 27
 
2995 stevensc 28
        <Row>
29
          <Typography variant='overline'>
30
            <VisibilityOutlined />
31
            {visits}
32
          </Typography>
2854 stevensc 33
 
2995 stevensc 34
          <Typography variant='overline'>
35
            <MapOutlined />
36
            {country}
37
          </Typography>
2854 stevensc 38
 
2995 stevensc 39
          <Typography variant='overline'>
40
            <ShareOutlined />
41
            {connections}
42
          </Typography>
2996 stevensc 43
        </Row>
2995 stevensc 44
      </Widget.Body>
2854 stevensc 45
    </Widget>
3694 stevensc 46
  );
5 stevensc 47
}