import { Retailer } from '../entities/Enums'; export function RetailerFilter() { return function (retailer: Retailer) { switch (retailer) { case 'OVO': return 'OVO Energy'; case 'PeterboroughEnergy': return 'Peterborough Energy'; case 'SouthendEnergy': return 'Southend Energy' // For other retailers the name is the same as the display name default: return retailer; } } }