"use strict";

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

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

var _propTypes = require("../../utils/propTypes");

var doc = function doc(LinkTo) {
  var DocumentedLinkTo = (0, _reactDesc.describe)(LinkTo).description('A link component').usage("import { LinkTo } from '@dragonchain-dev/dragon-kit'\n\n<LinkTo url=\"https://dragonchain.com>Dragonchain</LinkTo>");
  DocumentedLinkTo.propTypes = {
    tag: _reactDesc.PropTypes.node.description('HTML tag').defaultValue('a'),
    type: _reactDesc.PropTypes.oneOf((0, _propTypes.propTypes)('LinkTo').type).description('The type of LinkTo'),
    url: _reactDesc.PropTypes.string.description('URL'),
    blank: _reactDesc.PropTypes.bool.description('Open url in new window'),
    disabled: _reactDesc.PropTypes.bool.description('Disable the LinkTo'),
    children: _reactDesc.PropTypes.node.description('LinkTo body').isRequired
  };
  return DocumentedLinkTo;
};

exports.doc = doc;