import { ChangeDetectionStrategy, Component, input } from '@angular/core';
import { ProductImageDirective } from '@isa/shared/product-image';
import { ProductRouterLinkDirective } from '@isa/shared/product-router-link';
import { RewardSelectionInputsComponent } from './reward-selection-inputs/reward-selection-inputs.component';
import { RewardSelectionItem } from '@isa/checkout/data-access';

@Component({
  selector: 'lib-reward-selection-item',
  templateUrl: './reward-selection-item.component.html',
  styleUrl: './reward-selection-item.component.css',
  changeDetection: ChangeDetectionStrategy.OnPush,
  imports: [
    ProductImageDirective,
    ProductRouterLinkDirective,
    RewardSelectionInputsComponent,
  ],
})
export class RewardSelectionItemComponent {
  rewardSelectionItem = input.required<RewardSelectionItem>();
}
