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

@Component({
  selector: 'field-mobile-number',
  template: `<app-input label="موبایل" [control]="control" [name]="name" type="mobile" />`,
  imports: [ReactiveFormsModule, InputComponent],
})
export class MobileNumberComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'mobile_number';
}
