import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
import { CustomerInfoDTO } from '@generated/swagger/crm-api';
import { CustomerLabelColor, CustomerLabelTextColor } from '../../../constants';
import { getEnabledCustomerFeature } from '@isa/crm/data-access';

@Component({
  selector: 'page-customer-result-list-item-full',
  templateUrl: 'customer-result-list-item-full.component.html',
  styleUrls: ['customer-result-list-item-full.component.css'],
  changeDetection: ChangeDetectionStrategy.OnPush,
  standalone: false,
})
export class CustomerResultListItemFullComponent {
  customerLabelColor = CustomerLabelColor;

  customerLabelTextColor = CustomerLabelTextColor;

  get label() {
    return getEnabledCustomerFeature(this.customer?.features);
  }

  @Input()
  customer: CustomerInfoDTO;
}
