import { EnumSelectComponent } from '@/shared/apiEnum/select.component';
import { Component, Input } from '@angular/core';
import { FormControl, ReactiveFormsModule } from '@angular/forms';

@Component({
  selector: 'field-pos-type',
  template: `<app-enum-select [control]="control" type="posType" [name]="name" />`,
  imports: [ReactiveFormsModule, EnumSelectComponent],
})
export class PosTypeComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'pos_type';
}
