const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let _pisell_utils = require("@pisell/utils");
require("./index.less");
//#region src/components/schedules/components/ResourceList/index.tsx
const ResourceList = (props) => {
	const { dataSource, loading, onClick } = props;
	const goResourceItem = (item) => {
		onClick === null || onClick === void 0 || onClick(item);
	};
	return /* @__PURE__ */ react.default.createElement(antd.Skeleton, {
		active: true,
		round: true,
		loading
	}, /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode__resource-list" }, dataSource.map((item) => {
		return /* @__PURE__ */ react.default.createElement("div", {
			className: "pisell-lowcode__resource-list-item",
			key: item.id,
			onClick: () => {
				goResourceItem(item);
			}
		}, /* @__PURE__ */ react.default.createElement(antd.Popover, { content: _pisell_utils.locales.getText("pisell2.text.products.edit-resource-message") }, /* @__PURE__ */ react.default.createElement("span", { className: "pisell-lowcode__resource-list-item-title" }, item.title)));
	})));
};
//#endregion
exports.default = ResourceList;
