"use strict";

var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Colgroup = Colgroup;

var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));

var _react = _interopRequireDefault(require("react"));

function Colgroup(_ref) {
  var descriptors = _ref.descriptors;
  return /*#__PURE__*/_react.default.createElement("colgroup", null, (0, _map.default)(descriptors).call(descriptors, function (descriptor) {
    if (descriptor.type === 'blank') {
      return /*#__PURE__*/_react.default.createElement("col", {
        key: descriptor.blankSide,
        style: {
          width: descriptor.width
        }
      });
    }

    return /*#__PURE__*/_react.default.createElement("col", {
      key: descriptor.colIndex,
      style: {
        width: descriptor.col.width
      }
    });
  }));
}