Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4260 | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

/* eslint-disable react/prop-types */
import React from 'react'

const SIZES_OPTIONS = {
    sm: 25,
    md: 30,
    lg: 40,
    xl: 60
}

const Avatar = ({ imageUrl = '', size = 'sm', name = '' }) => {
    return (
        <img
            src={imageUrl}
            alt={`${name} profile image`}
            className='user__image'
            width={SIZES_OPTIONS[size]}
            height={SIZES_OPTIONS[size]}
        />
    )
}

export default Avatar