"use strict";

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