import { Maybe } from '@/core';
import { UikitLabelComponent } from '@/uikit';
import { Component, Input } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Checkbox } from 'primeng/checkbox';

@Component({
  selector: 'app-checkbox',
  templateUrl: 'checkbox.component.html',
  imports: [Checkbox, UikitLabelComponent],
})
export class AppCheckboxComponent {
  @Input({ required: true }) control!: FormControl<Maybe<any>>;
  @Input({ required: true }) name!: string;
  @Input({ required: true }) label!: string;
  @Input() disabled = false;
  @Input() size?: 'small' | 'large';
  @Input() showErrors = true;
  @Input() hint?: string;
}
