import React from 'react'
import { RouteHandler, Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import './style.css'

class SiteNav extends React.Component {
    render() {
        const {location} = this.props
        return (
            <nav className='blog-nav'>
              <ul>
                <li>
                  <Link to="/" activeClassName="current" onlyActiveOnIndex> Articles
                  </Link>
                </li>
                <li>
                  <Link to="/about/" activeClassName="current"> About me
                  </Link>
                </li>
                <li>
                  <Link to="/contact/" activeClassName="current"> Contact me
                  </Link>
                </li>
              </ul>
            </nav>
            );
    }
}

SiteNav.propTypes = {
    location: React.PropTypes.object,
}

export default SiteNav
