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