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