import { Component , ChangeDetectionStrategy , EventEmitter , Output , Input } from '@angular/core' ; import { TokenAmount } from '@shared/models/tokens/token-amount' ; @ Component ( { selector : 'app-user-balance-container' , templateUrl : './user-balance-container.component.html' , styleUrls : [ './user-balance-container.component.scss' ] , changeDetection : ChangeDetectionStrategy . OnPush } ) export class UserBalanceContainerComponent { @ Input ( ) public token : TokenAmount ; @ Input ( ) public hide : 'maxButton' | 'balance' ; @ Output ( ) public maxButtonClickEvent : EventEmitter < void > ; constructor ( ) { this . maxButtonClickEvent = new EventEmitter < void > ( ) ; } public maxButtonClick ( ) { this . maxButtonClickEvent . emit ( ) ; } }