1234567891011121314 |
- import React, { Component } from 'react';
- import './index.less';
- import Assets from '@src/components/Assets';
- export default class Avatar extends Component {
- render() {
- const { className = '', name = '', src = '', size = 'basic', radius = true } = this.props;
- return (
- <div className={`g-avatar-wrapper ${className} ${size} ${radius ? 'radius' : ''}`}>
- <Assets name={name} src={src} />
- </div>
- );
- }
- }
|