import { Pipe, PipeTransform } from '@angular/core';
import { PublicationStatus } from './_models/metadata/publication-status';

@Pipe({
  name: 'publicationStatus'
})
export class PublicationStatusPipe implements PipeTransform {

  transform(value: PublicationStatus): string {
    switch (value) {
      case PublicationStatus.OnGoing: return 'On Going';
      case PublicationStatus.Hiatus: return 'Hiatus';
      case PublicationStatus.Completed: return 'Completed';
      
      default: return '';
    }
  }

}
