"use strict";

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

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

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

var doc = function doc(Block) {
  var DocumentedBlock = (0, _reactDesc.describe)(Block).description('A block component').usage("import { Block } from '@dragonchain-dev/dragon-kit'\n      \n<Block>Content</Block>");
  DocumentedBlock.propTypes = {
    type: _reactDesc.PropTypes.oneOf((0, _propTypes.propTypes)('Block').types).description('The type of block to render'),
    background: _reactDesc.PropTypes.oneOf((0, _propTypes.propTypes)('Block').backgrounds).description('Add a color to the block background'),
    borderTop: _reactDesc.PropTypes.oneOf((0, _propTypes.propTypes)('Block').borderTop).description('Add a colorful top border'),
    reverse: _reactDesc.PropTypes.bool.description('Reverse the block content if a defined type is selected'),
    small: _reactDesc.PropTypes.bool.description('Image size for 60/40'),
    wide: _reactDesc.PropTypes.bool.description('Make the full width component wider'),
    children: _reactDesc.PropTypes.node.description('Block body').isRequired
  };
  return DocumentedBlock;
};

exports.doc = doc;