mirror of https://github.com/Chocobozzz/PeerTube
20 lines
479 B
TypeScript
20 lines
479 B
TypeScript
import { Component, Input } from '@angular/core'
|
|
import { GlobalIconName } from '@app/shared/images/global-icon.component'
|
|
|
|
@Component({
|
|
selector: 'my-button',
|
|
styleUrls: ['./button.component.scss'],
|
|
templateUrl: './button.component.html'
|
|
})
|
|
|
|
export class ButtonComponent {
|
|
@Input() label = ''
|
|
@Input() className = 'grey-button'
|
|
@Input() icon: GlobalIconName = undefined
|
|
@Input() title: string = undefined
|
|
|
|
getTitle () {
|
|
return this.title || this.label
|
|
}
|
|
}
|