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

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