import React from 'react'; import classnames from 'classnames'; import PropTypes from 'prop-types'; import Jazzicon from '../../ui/jazzicon/jazzicon.component'; import BlockieIdenticon from '../../ui/identicon/blockieIdenticon/blockieIdenticon.component'; import { AvatarBase } from '../avatar-base'; import { Size } from '../../../helpers/constants/design-system'; import Box from '../../ui/box/box'; import { AVATAR_ACCOUNT_DIAMETERS, AVATAR_ACCOUNT_TYPES, AVATAR_ACCOUNT_SIZES, } from './avatar-account.constants'; export const AvatarAccount = ({ size = Size.MD, address, className, type, ...props }) => { return ( {type === 'Jazzicon' ? ( ) : ( )} ); }; AvatarAccount.propTypes = { /** * The size of the AvatarAccount. * Possible values could be 'SIZES.XS', 'SIZES.SM', 'SIZES.MD', 'SIZES.LG', 'SIZES.XL' * Defaults to SIZES.MD */ size: PropTypes.oneOf(Object.values(AVATAR_ACCOUNT_SIZES)), /** * The type of the avatar to be rendered, it can render either a Jazzicon or a Blockie */ type: PropTypes.oneOf(Object.values(AVATAR_ACCOUNT_TYPES)), /** * Address used for generating random image */ address: PropTypes.string.isRequired, /** * Add custom css class */ className: PropTypes.string, /** * AvatarAccount also accepts all Box props including but not limited to * className, as(change root element of HTML element) and margin props */ ...Box.propTypes, };