'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = NavLink;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _reactRouter = require('react-router');

var _NavLink = require('../../../styles/cspace-ui/NavLink.css');

var _NavLink2 = _interopRequireDefault(_NavLink);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function NavLink(props) {
  var to = props.to,
      children = props.children;


  return _react2.default.createElement(
    _reactRouter.Link,
    {
      to: to,
      className: _NavLink2.default.normal,
      activeClassName: _NavLink2.default.active
    },
    _react2.default.createElement(
      'div',
      null,
      children
    )
  );
}

NavLink.propTypes = {
  to: _react.PropTypes.string.isRequired,
  children: _react.PropTypes.node
};