Chocobozzz/PeerTube

View on GitHub
client/src/app/shared/shared-main/plugins/plugin-placeholder.component.ts

Summary

Maintainability
A
0 mins
Test Coverage
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' ],
  standalone: true
})

export class PluginPlaceholderComponent {
  @Input() pluginId: PluginElementPlaceholder

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