import { Component, Input } from '@angular/core'
+import { GlobalIconName } from '@app/shared/images/global-icon.component'
@Component({
selector: 'my-button',
export class ButtonComponent {
@Input() label = ''
- @Input() className = undefined
- @Input() icon = undefined
- @Input() title = undefined
+ @Input() className = 'grey-button'
+ @Input() icon: GlobalIconName = undefined
+ @Input() title: string = undefined
+ @Input() loading = false
getTitle () {
return this.title || this.label