"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.TableHead = void 0;
var _react = require("react");
var _jsxRuntime = require("react/jsx-runtime");
const TableHead = _ref => {
  let {
    children,
    ...tableHeadProps
  } = _ref;
  const renderChildren = () => {
    return _react.Children.map(children, child => {
      // Extend props before rendering.
      if (child && child.props) {
        return /*#__PURE__*/(0, _react.cloneElement)(child, {
          _isTableHeadChild: true
        });
      }
      return child;
    });
  };
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("thead", {
    role: "rowgroup",
    ...tableHeadProps,
    children: renderChildren()
  });
};
exports.TableHead = TableHead;
var _default = exports.default = TableHead;