"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.TableHead = void 0;
var _compat = require("preact/compat");
var _jsxRuntime = require("preact/compat/jsx-runtime");
const TableHead = _ref => {
  let {
    children,
    ...tableHeadProps
  } = _ref;
  const renderChildren = () => {
    return _compat.Children.map(children, child => {
      // Extend props before rendering.
      if (child && child.props) {
        return (0, _compat.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;