import { r as registerInstance, h, H as Host } from './index-55faf181.js';

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';
  }
}
const MentornityPairCardStatus = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  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))));
  }
};

export { MentornityPairCardStatus as mentornity_pair_card_status };
