AutorÃa | Ultima modificación | Ver Log |
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