1 import { Component, Input } from '@angular/core'
2 import { User } from '../users'
3 import { Video } from './video.model'
4 import { ServerService } from '@app/core'
7 selector: 'my-video-miniature',
8 styleUrls: [ './video-miniature.component.scss' ],
9 templateUrl: './video-miniature.component.html'
11 export class VideoMiniatureComponent {
15 constructor (private serverService: ServerService) { }
18 return this.video.isVideoNSFWForUser(this.user, this.serverService.getConfig())