import React from "react";
import { Button } from "antd";
import { locales } from "@pisell/utils";
import "./index.less";
var ResourcesList = function ResourcesList(props) {
  var list = props.list,
    itemClick = props.itemClick,
    addClick = props.addClick;
  return /*#__PURE__*/React.createElement("div", {
    className: "pisell-lowcode__resources-list"
  }, list.map(function (item) {
    return /*#__PURE__*/React.createElement("div", {
      className: "pisell-lowcode__resources-item",
      key: item.id,
      id: item.id,
      onClick: function 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: function onClick() {
      addClick === null || addClick === void 0 || addClick();
    }
  }, locales.getText('pisell2.text.schedules.add')));
};
export default ResourcesList;