content: import React from 'react';
  import HomeStore from '../stores/HomeStore';
  import cookie from 'react-cookie';
  
  class Home extends React.Component {
    
    constructor(props) {
      super(props);
      this.state = HomeStore.getState();
    }
    
    renderAuth() {
      if (!this.state.user) {
        this.state.user = cookie.load('username');
        if (this.state.user == 'undefined' | !this.state.user) {
          return (
            <div className='container'>
        
              <h1> Open Object Marker </h1>
              <ul>
                <li><a className="active" href="/home">Home</a></li>
                <li><a href="/upload">Upload</a></li>
                <li><a href="/label">Label</a></li>
                <li><a href="/explore">Explore</a></li>
                <li><a href="/login">Login</a></li>
              </ul>
          
              <hr></hr>
          
                <p>Open Object Marker is a platform for you to share images and annotate them through collaboration.</p>
                <p>Upload your images and hope others to annotate them for you!</p>
                <p>The more you annotate, the more you can download!</p>
            </div>
          );
        }
      }
      return (
      <div className='container'>
        
          <h1> Open Object Marker </h1>
          <ul>
            <li><a className="active" href="/home">Home</a></li>
            <li><a href="/upload">Upload</a></li>
            <li><a href="/label">Label</a></li>
            <li><a href="/explore">Explore</a></li>
            <li><a href="/logout">Logout</a></li>
          </ul>
          
          <hr></hr>
          
          <p>Open Object Marker is a platform for you to share images and annotate them through collaboration.</p>
          <p>Upload your images and hope others to annotate them for you!</p>
          <p>The more you annotate, the more you can download!</p>
          
        </div>
      );
    }
    
    render() {
      return this.renderAuth();
    }
  }
  
  export default Home;
  