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

@Component({
  selector: 'field-partner-token',
  template: `<app-input
    label="توکن پارتنر"
    [control]="control"
    [name]="name"
    [isLtrInput]="true"
  />`,
  imports: [ReactiveFormsModule, InputComponent],
})
export class PartnerTokenComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'partner_token';
}
