aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/video/video-miniature.component.ts
blob: 4d79a74bb88effbbf43e0b625ce85be6f97bf781 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                

                                     


                                 

                                                    
  
                                      

                       
 

                                                   
   
 
import { Component, Input } from '@angular/core'
import { User } from '../users'
import { Video } from './video.model'

@Component({
  selector: 'my-video-miniature',
  styleUrls: [ './video-miniature.component.scss' ],
  templateUrl: './video-miniature.component.html'
})
export class VideoMiniatureComponent {
  @Input() user: User
  @Input() video: Video

  isVideoNSFWForThisUser () {
    return this.video.isVideoNSFWForUser(this.user)
  }
}