import { Component , EventEmitter , Output } from '@angular/core' ; import { ComposerService } from '../../../services/composer.service' ; /**
 * Permaweb Terms of Service component.
 */ @ Component ( { selector : 'm-composer__permawebTerms' , templateUrl : 'permaweb-terms.component.html' , styleUrls : [ 'permaweb-terms.component.ng.scss' ] , } ) export class PermawebTermsComponent { /**
     * Signal event emitter to parent's popup service
     */ @ Output ( ) dismissIntent : EventEmitter < any > = new EventEmitter < any > ( ) ; /**
     * Checkbox checked
     */ public checked : boolean = false ; constructor ( protected service ) { } returns { Promise < void > } public async save ( ) { this . service . postToPermaweb$ . next ( this . checked ) ; this . dismissIntent . emit ( ) ; } }