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 { useRecordBoardContext } from "../../hooks/useRecordBoardContext.js";
import React from "react";
//#region src/components/pisellRecordBoard/layouts/CardLayout/CardList.tsx
const _excluded = ["render"];
/**
* Card 布局下的数据视图：从 context 取 data / loading。
*/
const RecordBoardCardList = (props) => {
	var _ctx$data$length, _ctx$data;
	const ctx = useRecordBoardContext({ displayName: "cardList" });
	const { render } = props, rest = _objectWithoutProperties(props, _excluded);
	if (typeof render === "function") return /* @__PURE__ */ React.createElement(React.Fragment, null, render(_objectSpread2(_objectSpread2({}, ctx), rest)));
	return /* @__PURE__ */ React.createElement("div", {
		"data-layout-slot": "cardList",
		style: { minHeight: 120 }
	}, /* @__PURE__ */ React.createElement("span", { style: { color: "var(--color-text-tertiary, #999)" } }, "卡片视图（", (_ctx$data$length = (_ctx$data = ctx.data) === null || _ctx$data === void 0 ? void 0 : _ctx$data.length) !== null && _ctx$data$length !== void 0 ? _ctx$data$length : 0, " 条，loading:", " ", String(ctx.loading), "）"));
};
//#endregion
export { RecordBoardCardList as default };
