content: import React from 'react';
  
  function NowplayBar() {
      return <div className="overview-nowplay-bar">
          <span className="overview-nowplay-bar-item"></span>
          <span className="overview-nowplay-bar-item"></span>
          <span className="overview-nowplay-bar-item"></span>
          <span className="overview-nowplay-bar-item"></span>
          <span className="overview-nowplay-bar-item"></span>
      </div>;
  }
  
  class Nowplay extends React.Component {
      componentWillMount() {
          this.props.loadData();
      }
      render() {
          let content,
              description;
          if (!this.props.data.get('loaded')) {
              content = <NowplayBar />;
              description = 'Requesting data...';
          } else if (this.props.data.get('error')) {
              content = <NowplayBar />;
              description = 'Unable to get current track';
          } else {
              let data = this.props.data.get('data');
              if (data) {
                  content = <div className="overview-nowplay-track">
                      <div className="overview-nowplay-track-item">
                          <NowplayBar />
                      </div>
                      <div className="overview-nowplay-track-item">
                          {data.get('title')}
                      </div>
                  </div>;
                  description = `From "${data.get('album')}" of "${data.get('artist')}"`;
              } else {
                  content = <NowplayBar />;
                  description = 'Nothing to display';
              }
          }
          return <div className="overview-nowplay">
              <div className="overview-nowplay-content">
                  {content}
              </div>
              <div className="overview-nowplay-description" title={description}>
                  {description}
              </div>
          </div>;
      }
  }
  
  Nowplay.propTypes = {
      data: React.PropTypes.object.isRequired,
      loadData: React.PropTypes.func.isRequired
  };
  
  export default Nowplay;
  