import { Component, Inject } from '@angular/core'; import { WPT_DIALOG_DATA, WptDialogRef } from '@arrow/warpaint/dialog'; @Component({ templateUrl: 'buy-all-modal.component.html', styleUrls: [ 'buy-all-modal.component.scss', '../../../core/src/style/modal.scss' ] }) export class BuyAllModalComponent { constructor( public dialogRef: WptDialogRef, @Inject(WPT_DIALOG_DATA) public data: any ) {} /** * Handles user cancel click. */ cancel(): void { this.dialogRef.close(false); } /** * Handles view cart button click. */ viewCart() { this.dialogRef.close(true); } }