"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 center type=\"full\">Content</Block>");
  DocumentedBlock.propTypes = {
    type: _reactDesc.PropTypes.oneOf((0, _propTypes.propTypes)('Block').types).description('The type of block').defaultValue('full'),
    center: _reactDesc.PropTypes.bool.description("If block is a 'full', center content").defaultValue(false),
    divider: _reactDesc.PropTypes.bool.description('Add a divider between two half content sections').defaultValue(false),
    reverse: _reactDesc.PropTypes.bool.description('Reverse the content blocks').defaultValue(false),
    children: _reactDesc.PropTypes.node.description('Block content').isRequired
  };
  return DocumentedBlock;
};

exports.doc = doc;