import { Injectable } from '@angular/core' ; import { Storage } from '../../../../services/storage' ; const STORAGE_KEY = 'hide_wallet_balance' ; /**
 * Service for the handling of wallet privacy settings.
 */ @ Injectable ( { providedIn : 'root' } ) export class SettingsV2WalletService { constructor ( private storage ) { } param { boolean } shouldHide public setShouldHideWalletBalance ( shouldHide ) { this . storage . set ( STORAGE_KEY , shouldHide ? '1' : '0' ) ; } returns { boolean } public shouldHideWalletBalance ( ) { return this . storage . get ( STORAGE_KEY ) === '1' ; } }