import React from 'react';
import { locales } from '@pisell/utils';
import dayjs from 'dayjs';
import "./index.less";
var CupInfoCard = function CupInfoCard(props) {
  var type = props.type,
    data = props.data,
    isMultipleShop = props.isMultipleShop,
    isMultipleTime = props.isMultipleTime;
  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.".concat(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 && data.time ? dayjs(data === null || data === void 0 ? void 0 : data.time).format('HH:mm DD/MM/YYYY') : '-'));
};
export default CupInfoCard;