import React from 'react';
import classNames from 'classnames';
import { isFloorRoomCardTooltipDensity } from "../floorRoomCardDensity";
import { IconCheck, IconYen } from "./RoomCardIcons";
export function RoomCardPaymentIndicator(props) {
  var kind = props.kind,
    density = props.density,
    _props$shellShape = props.shellShape,
    shellShape = _props$shellShape === void 0 ? 'rect' : _props$shellShape,
    placement = props.placement,
    paymentBadgeClass = props.paymentBadgeClass,
    paidLabel = props.paidLabel,
    unpaidLabel = props.unpaidLabel;
  if (placement === 'corner') {
    if (!isFloorRoomCardTooltipDensity(density, shellShape)) return null;
    if (kind === 'paid') {
      return /*#__PURE__*/React.createElement("div", {
        className: "rc-pay-chip rc-pay-chip--paid rc-pay-chip--corner",
        "aria-hidden": true
      });
    }
    return /*#__PURE__*/React.createElement("div", {
      className: classNames('rc-pay-chip', 'rc-pay-chip--unpaid', 'rc-pay-chip--corner'),
      "aria-label": unpaidLabel
    }, /*#__PURE__*/React.createElement(IconYen, null));
  }
  if (placement === 'badge') {
    if (density !== 'compact') return null;
    if (kind === 'paid') {
      return /*#__PURE__*/React.createElement("span", {
        className: classNames('rc-compact__badge', paymentBadgeClass, 'rc-pay-badge--with-icon')
      }, /*#__PURE__*/React.createElement(IconCheck, null), /*#__PURE__*/React.createElement("span", null, paidLabel));
    }
    return /*#__PURE__*/React.createElement("span", {
      className: classNames('rc-compact__badge', paymentBadgeClass, 'rc-pay-badge--with-icon')
    }, /*#__PURE__*/React.createElement(IconYen, null), /*#__PURE__*/React.createElement("span", null, unpaidLabel));
  }
  if (density !== 'mini') return null;
  if (kind === 'paid') {
    return /*#__PURE__*/React.createElement("span", {
      className: classNames('rc-pay-chip', 'rc-pay-chip--paid', 'rc-pay-chip--inline'),
      "aria-hidden": true
    });
  }
  return /*#__PURE__*/React.createElement("span", {
    className: classNames('rc-pay-chip', 'rc-pay-chip--unpaid', 'rc-pay-chip--inline'),
    "aria-label": unpaidLabel
  }, /*#__PURE__*/React.createElement(IconYen, null));
}