import React, { PureComponent } from 'react';
import './custom.css'
class Index extends PureComponent {

  render() {
    
    let { img_url , name ,hrefUrl} = this.props;
    return (
      <span {...this.props}>
        <a target="_blank" rel="noopener noreferrer" href={hrefUrl} ><img alt="用户头像" src={img_url} className="radius custom-img"></img></a>
        <a target="_blank" rel="noopener noreferrer" href={hrefUrl} ><span className="wrap-name">{name}</span></a>
      </span>
    )
  }
}

export default Index;