/**
 * 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.
 */

import React from "react";
import { TableHead } from "@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.createElement(TableHead, null, headerGroups.map((headerGroup) => HeaderRow?.(datagridState, headRef, headerGroup)));
};
//#endregion
export { DatagridHead as default };
