mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
19 lines
377 B
TypeScript
19 lines
377 B
TypeScript
|
|
import { Component, Input } from '@angular/core'
|
||
|
|
|
||
|
|
@Component({
|
||
|
|
selector: 'my-button',
|
||
|
|
styleUrls: ['./button.component.scss'],
|
||
|
|
templateUrl: './button.component.html'
|
||
|
|
})
|
||
|
|
|
||
|
|
export class ButtonComponent {
|
||
|
|
@Input() label = ''
|
||
|
|
@Input() className = undefined
|
||
|
|
@Input() icon = undefined
|
||
|
|
@Input() title = undefined
|
||
|
|
|
||
|
|
getTitle () {
|
||
|
|
return this.title || this.label
|
||
|
|
}
|
||
|
|
}
|