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

@Component({
  selector: 'field-mobile',
  template: `<app-input
    label="شماره تلفن همراه"
    [control]="control"
    [name]="name"
    type="mobile"
  />`,
  imports: [ReactiveFormsModule, InputComponent],
})
export class MobileComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'mobile';
}
