{"size": 1080, "ext": "js", "max_stars_repo_path": "src/pages/home.js", "max_stars_repo_name": "kinsly/relay-universal-starter-kit", "max_stars_repo_stars_event_min_datetime": "2017-10-29T20:44:03.000Z", "max_stars_repo_stars_event_max_datetime": "2017-10-29T20:44:03.000Z", "max_issues_repo_path": "src/pages/home.js", "max_issues_repo_name": "kinsly/relay-universal-starter-kit", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/pages/home.js", "max_forks_repo_name": "kinsly/relay-universal-starter-kit", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.1764705882, "max_line_length": 114, "alphanum_fraction": 0.5842592593}
/*
*  Home Page
*/

import React from "react"
import Relay from "react-relay"
import {Link, browserHistory} from "react-router"
import {injectIntl, IntlProvider,FormattedMessage} from 'react-intl';
import Helmet from "react-helmet";

class HomePage extends React.Component{
  constructor(props) {
    super(props)
  }

  static contextTypes = {
    intl : React.PropTypes.object.isRequired,
    relay: Relay.PropTypes.Environment,
  }

  render(){

    return (
      <div>
          <Helmet
              title= {this.context.intl.formatMessage({id:"home_page_title"})}
              meta={ [
                  { name: "description", content: this.context.intl.formatMessage({id:"home_page_description"}) },
                  ] }
              />
              <h2> Home Page</h2>
              <Link to= "/en/sample"> To Sample Page </Link>
     </div>
    )
  }

}

export default Relay.createContainer(HomePage, {
  fragments:{
    viewer: () => Relay.QL`
    fragment on TravelerEntry{
        id
        isLogged
        csrfToken
        currentLanguage
    }
    `
  }
})
