1 import { Component, Input } from '@angular/core'
2 import { VideoChannel } from '../../shared-main'
3 import { CustomMarkupComponent } from './shared'
6 * Markup component that creates a button
10 selector: 'my-button-markup',
11 templateUrl: 'button-markup.component.html',
12 styleUrls: [ 'button-markup.component.scss' ]
14 export class ButtonMarkupComponent implements CustomMarkupComponent {
15 @Input() theme: 'primary' | 'secondary'
17 @Input() label: string
18 @Input() blankTarget?: boolean
24 if (this.blankTarget === true) return '_blank'
30 const additionalClass = this.theme === 'primary'
34 return [ 'peertube-button-link', additionalClass ]