import React from 'react';
import { PisellText } from '@pisell/materials';
import "./index.less";
var Amount = PisellText.Amount;
var WalletPassTextMode = function WalletPassTextMode(_ref) {
  var cardData = _ref.cardData,
    selectedWalletIds = _ref.selectedWalletIds;
  return /*#__PURE__*/React.createElement("div", {
    className: "wallet-pass-text-mode"
  }, cardData && cardData.length > 0 ? cardData.filter(function (card) {
    return selectedWalletIds.includes(card.id);
  }).map(function (card) {
    return /*#__PURE__*/React.createElement("div", {
      key: card.id,
      className: "wallet-pass-text-item selected"
    }, /*#__PURE__*/React.createElement("span", {
      className: "wallet-pass-text-name"
    }, card.name), /*#__PURE__*/React.createElement("span", {
      className: "wallet-pass-text-amount"
    }, "-", /*#__PURE__*/React.createElement(Amount, {
      value: card.redeem,
      showCurrencySymbol: true
    })));
  }) : /*#__PURE__*/React.createElement("div", {
    className: "wallet-pass-text-empty"
  }));
};
export default WalletPassTextMode;