import { ChangeDetectionStrategy , Component , EventEmitter , Input } from '@angular/core' ; import { GameEvent } from '../../models/game-event' ; import { OverwolfService } from '../../services/overwolf.service' ; @ Component ( { selector : 'secrets-helper-control-bar' , styleUrls : [ '../../../css/global/components-global.scss' , '../../../css/component/secrets-helper/secrets-helper-control-bar.component.scss' , ] , template : `
		<div class="control-bar">
			<div class="title">Secrets Helper</div>
			<!-- <div class="controls">
				<control-minimize [windowId]="windowId" [eventProvider]="minimizeHandler"></control-minimize>
			</div> -->
		</div>
	` , changeDetection : ChangeDetectionStrategy . OnPush , } ) export class SecretsHelperControlBarComponent { @ Input ( ) windowId : string ; minimizeHandler : ( ) => void ; private deckUpdater : EventEmitter < GameEvent > ; constructor ( private readonly ow ) { this . deckUpdater = this . ow . getMainWindow ( ) . deckUpdater ; this . minimizeHandler = ( ) => this . deckUpdater . next ( Object . assign ( new GameEvent ( ) , { type : 'TOGGLE_SECRET_HELPER' , } as GameEvent ) ) ; } }