blob: 18434dad2f28fc795db7b58ba577ce447e0ffd14 (
plain) (
tree)
|
|
import { Component, Input } from '@angular/core'
import { SortField, Video } from '../shared'
import { User } from '../../shared'
@Component({
selector: 'my-video-miniature',
styleUrls: [ './video-miniature.component.scss' ],
templateUrl: './video-miniature.component.html'
})
export class VideoMiniatureComponent {
@Input() currentSort: SortField
@Input() user: User
@Input() video: Video
isVideoNSFWForThisUser () {
return this.video.isVideoNSFWForUser(this.user)
}
}
|