import { Pipe, PipeTransform } from '@angular/core';
import { RemissionSourceType } from '@isa/remission';

@Pipe({
  pure: true,
  name: 'remissionSourcesDisplay',
})
export class RemissionSourcesDisplayPipe implements PipeTransform {
  transform(source: RemissionSourceType): string {
    const mapping: { [key in RemissionSourceType]: string } = {
      zentral: 'Zentr. Sortiment',
      ueberlauf: 'Überlauf',
    };

    return mapping[source] || undefined;
  }
}
