1 import { Component, Input } from '@angular/core'
2 import { VideoChannel } from '../shared-main'
5 * Markup component that creates a button
9 selector: 'my-button-markup',
10 templateUrl: 'button-markup.component.html',
11 styleUrls: [ 'button-markup.component.scss' ]
13 export class ButtonMarkupComponent {
14 @Input() theme: 'primary' | 'secondary'
16 @Input() label: string
17 @Input() blankTarget?: boolean
22 if (this.blankTarget === true) return '_blank'
28 const additionalClass = this.theme === 'primary'
32 return [ 'peertube-button-link', additionalClass ]