const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_objectWithoutProperties = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js");
const require_index = require("./components/StatCard/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./index.less");
//#region src/components/pisellGridPro/components/DataCard/index.tsx
const _excluded = ["key"];
const DataCard = (props) => {
	const { dataItems = [], className, style } = props;
	/** 容器类名 */
	const dataCardClassName = (0, classnames.default)("pisell-grid-pro-datacard", className);
	/** 如果没有数据，不渲染 */
	if (dataItems.length === 0) return null;
	return /* @__PURE__ */ react.default.createElement("div", {
		className: dataCardClassName,
		style
	}, dataItems.map((item) => {
		const { key } = item, rest = require_objectWithoutProperties._objectWithoutProperties(item, _excluded);
		return /* @__PURE__ */ react.default.createElement(require_index.default, require_objectSpread2._objectSpread2({ key }, rest));
	}));
};
//#endregion
exports.default = DataCard;
