/**
 * 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_DatagridEmptyBody = require("./DatagridEmptyBody.js");
const require_DatagridVirtualBody = require("./DatagridVirtualBody.js");
const require_DatagridSimpleBody = require("./DatagridSimpleBody.js");
const require_DatagridRefBody = require("./DatagridRefBody.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/components/Datagrid/Datagrid/DatagridBody.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.
*/
const DatagridBody = (datagridState) => {
	const { isFetching, rows = [], withVirtualScroll, withStickyColumn } = datagridState;
	if (!isFetching && rows.length === 0) return /* @__PURE__ */ react.default.createElement(require_DatagridEmptyBody.default, datagridState);
	if (withVirtualScroll) return /* @__PURE__ */ react.default.createElement(require_DatagridVirtualBody.default, datagridState);
	if (withStickyColumn) return /* @__PURE__ */ react.default.createElement(require_DatagridRefBody.default, datagridState);
	return /* @__PURE__ */ react.default.createElement(require_DatagridSimpleBody.default, datagridState);
};
//#endregion
exports.default = DatagridBody;
