import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router';
import cn from 'classnames';

class NavbarLink extends Component {
  static propTypes = {
    to: PropTypes.string.isRequired,
    name: PropTypes.string.isRequired,
  }

  render() {
    return (
      <Link {...this.props} className={cn(`navbar-nav-link`, this.props.className)} to={this.props.to}>
        {this.props.name}
      </Link>
    );
  }
}

export default NavbarLink;
