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

@Component({
  selector: 'field-national-id',
  template: `<app-input label="کد ملی" [control]="control" [name]="name" type="nationalId" />`,
  imports: [ReactiveFormsModule, InputComponent],
})
export class NationalIdComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'national_id';
}
