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

@Component({
  selector: 'field-provider-id',
  template: `<catalog-provider-select [control]="control" />`,
  imports: [ReactiveFormsModule, CatalogProviderSelectComponent],
})
export class ProviderIdComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'provider_id';
}
