"use strict";

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

var _react = _interopRequireDefault(require("react"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var _reactRouterDom = require("react-router-dom");

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

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

function NavLink(props) {
  const {
    to,
    children
  } = props;
  return _react.default.createElement(_reactRouterDom.NavLink, {
    to: to,
    className: _NavLink.default.normal,
    activeClassName: _NavLink.default.active
  }, _react.default.createElement("div", null, children));
}

NavLink.propTypes = {
  to: _propTypes.default.string.isRequired,
  children: _propTypes.default.node
};