import { Component, h, Host, Prop } from '@stencil/core';
function getLabelForStatus(status) {
  switch (status) {
    case 'requested':
      return 'Requested';
    case 'active':
      return 'Active';
    case 'rejected':
    default:
      return 'Rejected';
  }
}
function getTintForStatus(status) {
  switch (status) {
    case 'active':
      return 'primary';
    case 'rejected':
      return 'danger';
  }
}
export class MentornityPairCardStatus {
  render() {
    const status = this.item.subscription.status;
    return (h(Host, null,
      h("dvn-button", { scale: "small", shape: "rounded", tagMode: true, tint: getTintForStatus(status), view: "ghost" }, getLabelForStatus(status))));
  }
  static get is() { return "mentornity-pair-card-status"; }
  static get properties() { return {
    "item": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "DataModel",
        "resolved": "DataModel",
        "references": {
          "DataModel": {
            "location": "import",
            "path": "@dvn/core/models/data-model"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    }
  }; }
}
