"use strict";

exports.__esModule = true;
exports.doc = void 0;

var _reactDesc = require("react-desc");

var doc = function doc(NavBar) {
  var DocumentedNavBar = (0, _reactDesc.describe)(NavBar).description('A nav item component').usage("import { NavBar } from '@dragonchain-dev/dragon-kit'\n      \n<NavBar />");
  DocumentedNavBar.propTypes = {
    links: _reactDesc.PropTypes.arrayOf(_reactDesc.PropTypes.shape({
      name: _reactDesc.PropTypes.string.description('URL name').isRequired,
      type: _reactDesc.PropTypes.oneOf(['link', 'route']).description('Is the URL an internal route or external link').isRequired,
      url: _reactDesc.PropTypes.string.description('URL').isRequired,
      subNav: _reactDesc.PropTypes.shape({
        isMega: _reactDesc.PropTypes.bool.description('Mega menu').defaultValue(false),
        developerPanel: _reactDesc.PropTypes.bool.description('Display developer SDK panel').defaultValue(false),
        navItems: _reactDesc.PropTypes.arrayOf(_reactDesc.PropTypes.shape({
          description: _reactDesc.PropTypes.string.description('Descriptive text for a mega menu'),
          name: _reactDesc.PropTypes.string.description('URL name').isRequired,
          icon: _reactDesc.PropTypes.string.description('Icon name. Must be in Dragon Kit Icons'),
          type: _reactDesc.PropTypes.oneOf(['link', 'route']).description('Is the URL an internal route or external link').isRequired,
          url: _reactDesc.PropTypes.string.description('URL').isRequired
        }))
      })
    })).description('An array of footer URLs').isRequired
  };
  return DocumentedNavBar;
};

exports.doc = doc;