aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/plugins/plugin-placeholder.component.ts
blob: 2064b9089f6d4d6e41d0adb1d7b7da01dae130be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { Component, Input } from '@angular/core'
import { PluginElementPlaceholder } from '@peertube/peertube-models'

@Component({
  selector: 'my-plugin-placeholder',
  template: '<div [id]="getId()"></div>',
  styleUrls: [ './plugin-placeholder.component.scss' ]
})

export class PluginPlaceholderComponent {
  @Input() pluginId: PluginElementPlaceholder

  getId () {
    return 'plugin-placeholder-' + this.pluginId
  }
}