import {
  ChangeDetectionStrategy,
  Component,
  inject,
} from '@angular/core';
import { RewardStartCardComponent } from './reward-start-card/reward-start-card.component';
import { RewardCustomerCardComponent } from './reward-customer-card/reward-customer-card.component';
import { IconButtonComponent } from '@isa/ui/buttons';
import {
  PrimaryCustomerCardResource,
} from '@isa/crm/data-access';
@Component({
  selector: 'reward-header',
  templateUrl: './reward-header.component.html',
  styleUrl: './reward-header.component.css',
  changeDetection: ChangeDetectionStrategy.OnPush,
  imports: [
    RewardStartCardComponent,
    RewardCustomerCardComponent,
    IconButtonComponent,
  ],
})
export class RewardHeaderComponent {
  #primaryCustomerCardResource = inject(PrimaryCustomerCardResource);

  readonly primaryCustomerCardValue =
    this.#primaryCustomerCardResource.primaryCustomerCard;
  readonly primaryCustomerCardFetching =
    this.#primaryCustomerCardResource.loading;
}
