import { ChangeDetectionStrategy , Component } from '@angular/core' ; import { MindsUser } from '../../../../../interfaces/entities' ; import { WireV2Service } from '../../wire-v2.service' ; import { ConfigsService } from '../../../../../common/services/configs.service' ; import entityToBannerUrl from '../../../../../helpers/entity-to-banner-url' ; @ Component ( { selector : 'm-wireCreator__ownerBlock' , changeDetection : ChangeDetectionStrategy . OnPush , templateUrl : 'owner-block.component.html' , styleUrls : [ 'owner-block.component.ng.scss' ] , } ) export class WireCreatorOwnerBlock { /**
     * CDN URL
     */ readonly cdnUrl : string ; param service param configs constructor ( public service , configs ) { this . cdnUrl = configs . get ( 'cdn_url' ) ; } param owner bannerBackgroundImageCss ( owner ) { const bannerUrl = entityToBannerUrl ( owner ) ; if ( ! bannerUrl ) { return { } ; } return { backgroundImage : `url(${ this . cdnUrl }${ bannerUrl })` , } ; } }