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

@Component({
  selector: 'field-terminal',
  template: `<app-input label="پرداخت با پایانه" [control]="control" [name]="name" type="price" />`,
  imports: [ReactiveFormsModule, InputComponent],
})
export class TerminalComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'terminal';
}
