"use strict";
require("react");
const constant = require("./constant.js");
const emotionReactJsxRuntime_browser_esm = require("../../../../../../@emotion_react@11.10.4_3toe27fv7etiytxb5kxc7fxaw4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");
function fixedWidth(width) {
  return typeof width === "number" || typeof width === "string" ? {
    width
  } : {};
}
function ColGroup(props) {
  var prefixCls = props.prefixCls, columns = props.columns;
  return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx("colgroup", {
    children: columns.map(function(col, index) {
      if (col.title === constant.INTERNAL_EXPAND_KEY) {
        return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx("col", {
          className: prefixCls + "-expand-icon-col",
          style: fixedWidth(col.width)
        }, constant.INTERNAL_EXPAND_KEY);
      }
      if (col.title === constant.INTERNAL_SELECTION_KEY) {
        return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx("col", {
          className: prefixCls + "-selection-col",
          style: fixedWidth(col.width)
        }, constant.INTERNAL_SELECTION_KEY);
      }
      return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx("col", {
        style: fixedWidth(col.width)
      }, col.key || index);
    })
  });
}
module.exports = ColGroup;
//# sourceMappingURL=colgroup.js.map
