import { Component, Input } from '@angular/core';
import { FormControl, ReactiveFormsModule } from '@angular/forms';
import { InputComponent } from '../input/input.component';

@Component({
  selector: 'field-serial-number',
  template: `<app-input label="سریال دستگاه" [control]="control" [name]="name" />`,
  imports: [ReactiveFormsModule, InputComponent],
})
export class SerialNumberComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'serial_number';
}
