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

@Component({
  selector: 'field-company-name',
  template: `<app-input label="نام مجموعه" [control]="control" [name]="name" />`,
  imports: [ReactiveFormsModule, InputComponent],
})
export class CompanyNameComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'company_name';
}
