import { Component , Inject } from '@angular/core' ; import { SBB_DIALOG_DATA } from '@sbb-esta/angular/dialog' ; import { CdnIcon } from '../../cdn-icon.service' ; @ Component ( { selector : 'sbb-cdn-icon-dialog' , templateUrl : './cdn-icon-dialog.component.html' , styleUrls : [ './cdn-icon-dialog.component.css' ] , } ) export class CdnIconDialogComponent { constructor ( @ Inject ( SBB_DIALOG_DATA ) public data ) { } get cdnIcon ( ) : CdnIcon { return this . data . cdnIcon ; } get tags ( ) : string { return this . cdnIcon . tags . join ( ', ' ) ; } get cdnIconPath ( ) { return `${ this . cdnIcon . namespace }:${ this . cdnIcon . name }` ; } }