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

@Component({
  selector: 'app-star-selector',
  standalone: true,
  imports: [TranslatePipe],
  templateUrl: './star-selector.component.html',
  styleUrls: ['./star-selector.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class StarSelectorComponent {
  @Input() rating = 0;
  @Output() ratingChange = new EventEmitter<number>();

  readonly stars = [1, 2, 3, 4, 5];
}
