import { AirGapWallet , AirGapWalletStatus } from '@airgap/coinlib-core' ; import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'walletStatus' } ) export class WalletStatusPipe implements PipeTransform { public transform ( items , args ) { if ( ! items ) { return [ ] ; } return items . filter ( ( wallet ) => wallet . status === args . status ) ; } }