import { CatalogSkuSelectComponent } from '@/shared/catalog/sku';
import { Component, Input } from '@angular/core';
import { FormControl, ReactiveFormsModule } from '@angular/forms';

@Component({
  selector: 'field-sku',
  template: `<catalog-sku-select label="شناسه کالا" [control]="control" [name]="name" />`,
  imports: [ReactiveFormsModule, CatalogSkuSelectComponent],
})
export class SkuComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'sku';
}
