import dayjs from "dayjs";
import React from "react";
import { locales } from "@pisell/utils";
import "./index.less";
//#region src/components/ecocup/components/CupInfoCard/index.tsx
const CupInfoCard = (props) => {
	const { type, data, isMultipleShop, isMultipleTime } = props;
	return /* @__PURE__ */ React.createElement("div", { className: "pisell2-ecocup-cup-info-card" }, /* @__PURE__ */ React.createElement("div", null, locales.getText(`pisell2.text.ecocup.cup-info-card.title.${type}`)), isMultipleShop ? locales.getText("pisell2.text.ecocup.cup-info-card.title.multiple-shop") : /* @__PURE__ */ React.createElement("div", null, (data === null || data === void 0 ? void 0 : data.shop) || "-"), isMultipleTime ? locales.getText("pisell2.text.ecocup.cup-info-card.title.multiple-time") : /* @__PURE__ */ React.createElement("div", null, (data === null || data === void 0 ? void 0 : data.time) ? dayjs(data === null || data === void 0 ? void 0 : data.time).format("HH:mm DD/MM/YYYY") : "-"));
};
//#endregion
export { CupInfoCard as default };
