1 import { Component, Input } from '@angular/core'
2 import { isInMobileView } from '@app/shared/misc/utils'
3 import { Video } from './video.model'
6 selector: 'my-video-thumbnail',
7 styleUrls: [ './video-thumbnail.component.scss' ],
8 templateUrl: './video-thumbnail.component.html'
10 export class VideoThumbnailComponent {
15 if (!this.video) return ''
17 if (isInMobileView()) {
18 return this.video.previewUrl
21 return this.video.thumbnailUrl