"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

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

var _classnames = _interopRequireDefault(require("classnames"));

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

var _js = require("../../globals/js");

var _excluded = ["title", "children", "className"];
var prefix = _js.settings.prefix;

function AnchorNavigation(_ref) {
  var title = _ref.title,
      children = _ref.children,
      className = _ref.className,
      other = (0, _objectWithoutProperties2.default)(_ref, _excluded);
  var wrapperClasses = (0, _classnames.default)("".concat(prefix, "--anchor-navigation"), className);
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
    className: wrapperClasses
  }, other), /*#__PURE__*/_react.default.createElement("div", {
    className: "".concat(prefix, "--anchor-header-title")
  }, title), /*#__PURE__*/_react.default.createElement("div", {
    className: "".concat(prefix, "--anchor-content")
  }, children));
}

AnchorNavigation.propTypes = {
  /**
   * The `title` is represented in the header
   */
  title: _propTypes.default.string,

  /**
   * The content usually consisting out of `Links`
   */
  children: _propTypes.default.node,

  /**
   * The CSS class name to be placed on the wrapping element.
   */
  className: _propTypes.default.string
};
var _default = AnchorNavigation;
exports.default = _default;