import { Component , ContentChild , HostBinding , Input , OnInit , TemplateRef } from '@angular/core' ; type ThyResultStatus = 'success' | 'warning' | 'error' ; @ Component ( { selector : 'thy-result' , templateUrl : './result.component.html' } ) export class ThyResultComponent implements OnInit { @ Input ( ) thyStatus : ThyResultStatus ; @ Input ( ) thyTitle : string ; @ Input ( ) thySubtitle : string ; @ Input ( ) thyIcon : string ; @ ContentChild ( 'thyIcon' ) iconTemplateRef : TemplateRef < any > ; @ ContentChild ( 'thyExtra' ) extraTemplateRef : TemplateRef < any > ; @ ContentChild ( 'thyTitle' ) titleTemplateRef : TemplateRef < any > ; @ ContentChild ( 'thySubtitle' ) subtitleTemplateRef : TemplateRef < any > ; @ HostBinding ( 'class.thy-result' ) className = true ; constructor ( ) { } ngOnInit ( ) { } }