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