import { CatalogGuildSelectComponent } from '@/shared/catalog/guild/components/select.component';
import { Component, Input } from '@angular/core';
import { FormControl, ReactiveFormsModule } from '@angular/forms';

@Component({
  selector: 'field-guild-id',
  template: `<catalog-guild-select label="صنف" [control]="control" [name]="name" />`,
  imports: [ReactiveFormsModule, CatalogGuildSelectComponent],
})
export class GuildIdComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'guild_id';
}
