import { Maybe } from '@/core';
import { UikitFieldComponent } from '@/uikit';
import { Component, Input } from '@angular/core';
import { FormControl, ReactiveFormsModule } from '@angular/forms';
import { ButtonDirective } from 'primeng/button';
import { InputGroup } from 'primeng/inputgroup';
import { InputGroupAddon } from 'primeng/inputgroupaddon';
import { InputText } from 'primeng/inputtext';

@Component({
  selector: 'barcode-input',
  templateUrl: './barcode-input.component.html',
  imports: [
    ReactiveFormsModule,
    UikitFieldComponent,
    InputGroup,
    InputGroupAddon,
    ButtonDirective,
    InputText,
  ],
})
export class BarcodeInputComponent {
  @Input() control!: FormControl<Maybe<string>>;
  constructor() {}

  scanBarcode() {}
}
