"use strict";

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

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

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

var doc = function doc(Actions) {
  var DocumentedActions = (0, _reactDesc.describe)(Actions).description('A Actions component').usage("import { Actions } from '@dragonchain-dev/dragon-kit'\n      \n<Actions actions={actions} tag={Link} />");
  DocumentedActions.propTypes = {
    tag: _reactDesc.PropTypes.string.description('Default tag for all buttons'),
    actions: _reactDesc.PropTypes.arrayOf(_reactDesc.PropTypes.shape({
      tag: _reactDesc.PropTypes.string.description('HTML tag').defaultValue('a'),
      className: _reactDesc.PropTypes.string.description('Override all button styles'),
      color: _reactDesc.PropTypes.oneOf((0, _propTypes.propTypes)('Button').colors).description('Button color').defaultValue('blue'),
      hover: _reactDesc.PropTypes.oneOf((0, _propTypes.propTypes)('Button').hover).description('Button hover color').defaultValue('blue-dark'),
      type: _reactDesc.PropTypes.oneOf((0, _propTypes.propTypes)('Button').type).description('The type of button'),
      url: _reactDesc.PropTypes.string.description('URL'),
      blank: _reactDesc.PropTypes.bool.description('Open url in new window'),
      disabled: _reactDesc.PropTypes.bool.description('Disable the button'),
      small: _reactDesc.PropTypes.bool.description('Make the button smaller'),
      children: _reactDesc.PropTypes.node.description('Button body').isRequired
    })).description('An array of buttons').isRequired
  };
  return DocumentedActions;
};

exports.doc = doc;