{"size": 983, "ext": "js", "max_stars_repo_path": "src/components/human.js", "max_stars_repo_name": "jsdelivrbot/Avatar", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/human.js", "max_issues_repo_name": "jsdelivrbot/Avatar", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/human.js", "max_forks_repo_name": "jsdelivrbot/Avatar", "max_forks_repo_forks_event_min_datetime": "2018-12-09T08:13:50.000Z", "max_forks_repo_forks_event_max_datetime": "2018-12-09T08:13:50.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 28.0857142857, "max_line_length": 118, "alphanum_fraction": 0.502543235}
import React, { Component } from 'react'

export default class Human extends Component {
    render()  {
        let tisk;
        if (this.props.square) {
        tisk = (
        <div className="HratanyBox col-md-4">
         <div className="col-md-4"><img className="picture" src={this.props.photo} height="50px" width="50px"/></div>
         <div className="col-md-8"> {this.props.name}</div>
        </div>
      )
    } 
        else {
        tisk = (
        <div className="Box col-md-4">
          <div className="col-md-4"><img className="picture" src={this.props.photo} height="50px" width="50px"/></div>
          <div className="col-md-8"> {this.props.name}</div>
        </div>
      )
    }
        return (
            <div className="col-md-12">
               <div className="col-md-4" > 
               </div>
               {tisk}
            </div>
        )
    }
}
Human.defaultProps = {
    name:"Joe Doe",
    square: false,
    photo: './public/base.jpg'
}