/**
 * 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");
const require_index = require("../../../node_modules/classnames/index.js");
const require_settings = require("../../../settings.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _carbon_react = require("@carbon/react");
//#region src/components/Datagrid/Datagrid/DatagridSimpleBody.tsx
/**
* Copyright IBM Corp. 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.default);
const blockClass = `${require_settings.pkg.prefix}--datagrid`;
const DatagridSimpleBody = (datagridState) => {
	const { getTableBodyProps, rows, prepareRow } = datagridState;
	return /* @__PURE__ */ react.default.createElement(_carbon_react.TableBody, {
		...getTableBodyProps({ role: void 0 }),
		"aria-live": void 0,
		className: (0, import_classnames.default)(`${blockClass}__simple-body`, getTableBodyProps().className)
	}, rows.map((row) => {
		prepareRow(row);
		const { key } = row.getRowProps();
		return row?.RowRenderer?.({
			...datagridState,
			row,
			key
		});
	}));
};
//#endregion
exports.default = DatagridSimpleBody;
