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

class NavbarBrand extends Component {
  static propTypes = {
    className: PropTypes.string,
    to: PropTypes.string.isRequired,
    image: PropTypes.string.isRequired,
    alt: PropTypes.string.isRequired,
  }

  render() {
    return (
      <Link className={cn(`navbar-nav-brand`, this.props.className)} to={this.props.to}>
        <img className="navbar-nav-brand-image" src={this.props.image} alt={this.props.alt} />
      </Link>
    );
  }
}

export default NavbarBrand;
