import React from 'react';
import { PisellList01 } from '@pisell/materials';
import ProductCard from "../productCard";
import "./index.less";
var BookingServiceList = function BookingServiceList(_ref) {
  var dataSource = _ref.dataSource,
    _onClick = _ref.onClick,
    _ref$showSearch = _ref.showSearch,
    showSearch = _ref$showSearch === void 0 ? false : _ref$showSearch,
    _ref$showCategory = _ref.showCategory,
    showCategory = _ref$showCategory === void 0 ? true : _ref$showCategory,
    showImage = _ref.showImage,
    showPrice = _ref.showPrice,
    showTitle = _ref.showTitle,
    placeholder = _ref.placeholder,
    onSearch = _ref.onSearch,
    isShowEmpty = _ref.isShowEmpty,
    description = _ref.description;
  /**
   * @title: 渲染服务项
   * @description: 渲染服务项
   * @param {any} service
   * @return {*}
   * @Author: WangHan
   * @Date: 2025-01-13 16:52
   */
  var renderServiceItem = function renderServiceItem(item) {
    return /*#__PURE__*/React.createElement(ProductCard, {
      item: item,
      key: item.id,
      showImage: (item === null || item === void 0 ? void 0 : item.image) && showImage,
      showPrice: showPrice,
      showName: showTitle,
      onClick: function onClick() {
        return _onClick && _onClick(item);
      }
    });
  };
  return /*#__PURE__*/React.createElement("div", {
    className: "event-booking-service-list"
  }, /*#__PURE__*/React.createElement(PisellList01, {
    showSearch: showSearch,
    showCategory: showCategory,
    dataSource: dataSource,
    placeholder: placeholder,
    renderItem: renderServiceItem,
    onSearch: onSearch,
    isShowEmpty: isShowEmpty,
    description: description
  }));
};
export default BookingServiceList;