import { Pipe, PipeTransform } from '@angular/core';
import { ItemDTO } from '@generated/swagger/cat-search-api';

@Pipe({
  name: 'searchResultSelected',
  standalone: false,
})
export class SearchResultSelectedPipe implements PipeTransform {
  transform(item: ItemDTO, selectedItemIds: number[]): any {
    return selectedItemIds?.includes(item?.id);
  }
}
