import { Component , EventEmitter , Input , Output } from '@angular/core' ; import { Session } from '../../../../../services/session' ; import { AttachmentValidationPayload } from '../../../services/attachment-validator.service' ; /**
 * Attachment error component - popup for composer modal.
 */ @ Component ( { selector : 'm-composer__attachmentError' , templateUrl : './attachment-error.component.html' , styleUrls : [ './attachment-error.component.ng.scss' ] , } ) export class AttachmentErrorComponent { @ Input ( ) error : AttachmentValidationPayload ; @ Output ( ) dismissIntent : EventEmitter < any > = new EventEmitter < any > ( ) ; constructor ( private session ) { } returns { boolean } get isPlusOrPro ( ) : boolean { const user = this . session . getLoggedInUser ( ) ; return user . plus || user . pro ; } returns { void } public onContinueClick ( ) { this . dismissIntent . emit ( ) ; } }