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

@Pipe({
  name: 'purchaseOptionName',
})
export class PurchaseOptionNamePipe implements PipeTransform {
  readonly purchaseOptionNames = {
    'take-away': 'Rücklage / Filialentnahme',
    'pick-up': 'Abholung',
    delivery: 'Versand',
    'dig-delivery': 'DIG Versand',
    'b2b-delivery': 'B2B Versand',
    download: 'Download',
  };

  transform(value: any): any {
    return this.purchaseOptionNames[value] || '';
  }
}
