import { ChangeDetectionStrategy, Component, input } from '@angular/core';
import { TranslatePipe } from '../../../../../i18n/translate.pipe';

export interface ReviewHealthItem {
  labelKey: string;
  done: boolean;
}

/** Reusable checklist + completion meter, fed real per-item booleans from AdminModerationFacade.health() - never invents its own data. */
@Component({
  selector: 'app-review-health-widget',
  standalone: true,
  imports: [TranslatePipe],
  templateUrl: './review-health-widget.component.html',
  styleUrl: './review-health-widget.component.scss',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ReviewHealthWidgetComponent {
  readonly items = input.required<ReviewHealthItem[]>();
  readonly completionPercent = input.required<number>();
  readonly compact = input(false);
}
