]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/buttons/button.component.ts
Better typings
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / buttons / button.component.ts
CommitLineData
74d63469
GR
1import { Component, Input } from '@angular/core'
2
3@Component({
4 selector: 'my-button',
5 styleUrls: ['./button.component.scss'],
6 templateUrl: './button.component.html'
7})
8
9export class ButtonComponent {
10 @Input() label = ''
c199c427
C
11 @Input() className: string = undefined
12 @Input() icon: string = undefined
13 @Input() title: string = undefined
74d63469
GR
14
15 getTitle () {
16 return this.title || this.label
17 }
18}