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

@Component({
  selector: 'field-economic-code',
  template: `<app-input label="کد اقتصادی" [control]="control" [name]="name" type="number" />`,
  imports: [ReactiveFormsModule, InputComponent],
})
export class EconomicCodeComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'economic_code';
}
