import { Component, Inject } from '@angular/core'; import { Router } from '@angular/router'; import { WptDialogRef, WPT_DIALOG_DATA } from '@arrow/warpaint/dialog'; import { ConfigService } from '@arrow/bom/config'; import { CurrencyConverterPipe } from '@arrow/bom/shared'; export interface AddedDialogData { nonPurchasableCount: number; cartId: string; itemsAddedCount: number; } @Component({ templateUrl: './added-dialog.component.html', styleUrls: ['./added-dialog.component.scss'] }) export class AddedDialogComponent { constructor( private ref: WptDialogRef, @Inject(WPT_DIALOG_DATA) public data: AddedDialogData, public currencyConverter: CurrencyConverterPipe ) {} close(): void { this.ref.close(false); } viewCart(): void { this.ref.close(true); } }