import {Pipe, PipeTransform} from '@angular/core';
import {SortingMethods} from '../../../common/entities/SortingMethods';
@Pipe({name: 'iconizeSorting'})
export class IconizeSortingMethod implements PipeTransform {
transform(method: SortingMethods): string {
switch (method) {
case SortingMethods.ascName:
return 'A';
case SortingMethods.descName:
return 'A';
case SortingMethods.ascDate:
return '';
case SortingMethods.descDate:
return '';
}
}
}