/**
 * Copyright IBM Corp. 2020, 2026
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _carbon_react = require("@carbon/react");
//#region src/components/Datagrid/Datagrid/DatagridHead.tsx
/**
* Copyright IBM Corp. 2020, 2022
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
const DatagridHead = (datagridState) => {
	const { headerGroups = [], headRef, HeaderRow } = datagridState;
	return /* @__PURE__ */ react.default.createElement(_carbon_react.TableHead, null, headerGroups.map((headerGroup) => HeaderRow?.(datagridState, headRef, headerGroup)));
};
//#endregion
exports.default = DatagridHead;
