import React from "react";
import { formatAmount } from "@pisell/utils";
//#region src/components/booking/components/collapsibleList/utils.tsx
const renderBundles = (item, amountSymbol) => {
	const options = (item === null || item === void 0 ? void 0 : item.option) || [];
	return /* @__PURE__ */ React.createElement("div", {
		key: item.id,
		className: "product-bundle-item"
	}, /* @__PURE__ */ React.createElement("div", { className: "product-bundle-info" }, /* @__PURE__ */ React.createElement("div", { className: "product-bundle-info-title" }, item.title), /* @__PURE__ */ React.createElement("div", { className: "product-bundle-info-num" }, formatAmount(item.price, 2, amountSymbol), " × ", item.num)), /* @__PURE__ */ React.createElement("div", { className: "product-bundle-option" }, options.map((option, index) => {
		return /* @__PURE__ */ React.createElement("span", { key: option.id }, option.name, " x ", option.num, " ", index < options.length - 1 && ",", " ");
	})));
};
//#endregion
export { renderBundles };
