1 import { Component, Input, OnInit } from '@angular/core'
2 import { Video } from '../video/video.model'
3 import { I18n } from '@ngx-translate/i18n-polyfill'
6 selector: 'avatar-channel',
7 templateUrl: './avatar.component.html',
8 styleUrls: [ './avatar.component.scss' ]
10 export class AvatarComponent implements OnInit {
12 @Input() size: 'md' | 'sm' = 'md'
22 this.channelLinkTitle = this.i18n(
23 'Go to the channel page of {{name}} ({{handle}})',
24 { name: this.video.channel.name, handle: this.video.byVideoChannel }
26 this.accountLinkTitle = this.i18n(
27 'Go to the account page of {{name}} ({{handle}})',
28 { name: this.video.account.name, handle: this.video.byAccount }