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

@Component({
  selector: 'field-registration-number',
  template: `<app-input label="شماره ثبت" [control]="control" [name]="name" />`,
  imports: [ReactiveFormsModule, InputComponent],
})
export class RegistrationNumberComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'registration_number';
}
