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

@Component({
  selector: 'field-unit-price',
  template: `<app-input label="قیمت پایه" [control]="control" [name]="name" type="price" />`,
  imports: [ReactiveFormsModule, InputComponent],
})
export class UnitPriceComponent {
  @Input({ required: true }) control = new FormControl<string>('');
  @Input() name = 'unit_price';
}
