1 import { Component, Input } from '@angular/core'
2 import { PeerTubePlugin, PeerTubePluginIndex, PluginType } from '@shared/models'
3 import { PluginApiService } from './plugin-api.service'
6 selector: 'my-plugin-card',
7 templateUrl: './plugin-card.component.html',
8 styleUrls: [ './plugin-card.component.scss' ]
11 export class PluginCardComponent {
12 @Input() plugin: PeerTubePluginIndex | PeerTubePlugin
13 @Input() version: string
14 @Input() pluginType: PluginType
17 private pluginApiService: PluginApiService
21 getPluginOrThemeHref (name: string) {
22 return this.pluginApiService.getPluginOrThemeHref(this.pluginType, name)