Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev Autor Línea Nro. Línea
4250 stevensc 1
/* eslint-disable react/prop-types */
2
import React from 'react'
3
 
4
const SIZES_OPTIONS = {
5
    sm: 20,
6
    md: 25,
7
    lg: 30,
8
    xl: 45
9
}
10
 
11
const Avatar = ({ imageUrl = '', size = 'md', name = '' }) => {
12
    return (
13
        <img
14
            src={imageUrl}
15
            alt={`${name} profile image`}
16
            className='user__image'
17
            width={SIZES_OPTIONS[size]}
18
            height={SIZES_OPTIONS[size]}
19
        />
20
    )
21
}
22
 
23
export default Avatar