import { Component , ChangeDetectionStrategy , Inject } from '@angular/core' ; import { POLYMORPHEUS_CONTEXT } from '@tinkoff/ng-polymorpheus' ; import { TuiDialogContext } from '@taiga-ui/core' ; import { SuccessTxModalType } from 'src/app/shared/components/success-trx-notification/models/modal-type' ; @ Component ( { selector : 'app-success-trx-notification' , templateUrl : './success-trx-notification.component.html' , styleUrls : [ './success-trx-notification.component.scss' ] , changeDetection : ChangeDetectionStrategy . OnPush } ) export class SuccessTrxNotificationComponent { public type : SuccessTxModalType ; constructor ( @ Inject ( POLYMORPHEUS_CONTEXT ) private readonly context ) { this . type = context . data ?. type || 'default' ; } }