import { EnumSelectComponent } from '@/shared/apiEnum/select.component';
import { Component, Input } from '@angular/core';
import { FormControl, ReactiveFormsModule } from '@angular/forms';

@Component({
  selector: 'field-invoice-templates',
  template: `<app-enum-select
    type="invoice_template_type"
    [customLabel]="label"
    [control]="control"
    [name]="name"
  />`,
  imports: [ReactiveFormsModule, EnumSelectComponent],
})
export class FieldInvoiceTemplatesComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'invoice-template';
  @Input() label = 'قالب فاکتور';
}
