import { Component , EventEmitter , Input , OnInit , Output } from '@angular/core' ; import { IRecurringExpenseModel } from '@gauzy/contracts' ; import { TranslateService } from '@ngx-translate/core' ; import { monthNames } from '../../../@core/utils/date' ; import { TranslationBaseComponent } from '../../language-base/translation-base.component' ; @ Component ( { selector : 'ga-recurring-expense-history' , templateUrl : './recurring-expense-history.component.html' , styleUrls : [ './recurring-expense-history.component.scss' ] } ) export class RecurringExpenseHistoryComponent extends TranslationBaseComponent implements OnInit { @ Input ( ) recordsData : IRecurringExpenseModel [ ] = [ ] ; @ Output ( ) closeHistory = new EventEmitter < void > ( ) ; constructor ( readonly translateService ) { super ( translateService ) ; } emitClose = ( ) => { this . closeHistory . emit ( ) ; } ; ngOnInit ( ) { } getMonthString ( month ) { return monthNames [ month ] ; } }