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/resources/list/index.tsx
const ResourcesList = (props) => {
	const { list, itemClick, addClick } = props;
	return /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode__resources-list" }, list.map((item) => {
		return /* @__PURE__ */ react.default.createElement("div", {
			className: "pisell-lowcode__resources-item",
			key: item.id,
			id: item.id,
			onClick: () => {
				itemClick === null || itemClick === void 0 || itemClick(item);
			}
		}, item.title);
	}), /* @__PURE__ */ react.default.createElement(antd.Button, {
		type: "primary",
		ghost: true,
		size: "large",
		className: "pisell-lowcode__resourcesadd-btn",
		onClick: () => {
			addClick === null || addClick === void 0 || addClick();
		}
	}, _pisell_utils.locales.getText("pisell2.text.schedules.add")));
};
//#endregion
exports.default = ResourcesList;
