import * as React from 'react' import { uniqueId } from 'lodash' import Accessories from './top/accessories' import Clothe from './clothes' import Face from './face' import Skin from './Skin' import Top from './top' export enum AvatarStyle { Circle = 'Circle', Transparent = 'Transparent', } export interface Props { avatarStyle: AvatarStyle className?: string; style?: React.CSSProperties } export default class Avatar extends React.Component { private path1 = uniqueId('react-path-') private path2 = uniqueId('react-path-') private path3 = uniqueId('react-path-') private mask1 = uniqueId('react-mask-') private mask2 = uniqueId('react-mask-') private mask3 = uniqueId('react-mask-') render() { const { path1, path2, path3, mask1, mask2, mask3 } = this const { avatarStyle } = this.props const circle = avatarStyle === AvatarStyle.Circle return ( Created with getavataaars.com {circle ? ( ) : null} {circle ? ( ) : null} ) } }