{"size": 468, "ext": "js", "max_stars_repo_path": "app/elements/status.js", "max_stars_repo_name": "Matthew-MK/friends", "max_stars_repo_stars_event_min_datetime": "2015-04-27T06:01:12.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-27T07:37:27.000Z", "max_issues_repo_path": "app/elements/status.js", "max_issues_repo_name": "Matthew-MK/friends", "max_issues_repo_issues_event_min_datetime": "2015-04-27T06:24:42.000Z", "max_issues_repo_issues_event_max_datetime": "2019-03-22T21:37:02.000Z", "max_forks_repo_path": "app/elements/status.js", "max_forks_repo_name": "Matthew-MK/friends", "max_forks_repo_forks_event_min_datetime": "2015-04-27T09:07:57.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-25T01:38:18.000Z"}
{"max_stars_count": 3582, "max_issues_count": 165, "max_forks_count": 488, "avg_line_length": 23.4, "max_line_length": 82, "alphanum_fraction": 0.6495726496}
module.exports = Status

var inherits = require('util').inherits
var BaseElement = require('./base-element')
var yo = require('yo-yo')

function Status (target) {
  BaseElement.call(this, target)
}
inherits(Status, BaseElement)

Status.prototype.render = function (username, peers) {
  return yo`
    <div class="status">
      <div class="username">${username}</div>
      <div class="peers">Connected to ${peers} peer${peers === 1 ? '' : 's'}</div>
    </div>
  `
}
