import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { RefreshService } from '@shared/ui-api/refresh.service';
import { InvoiceListUIService } from '../invoice-list-ui.service';
import { ListBase } from '@objects-view/list-base';
import { IInvoiceModel } from '@fleio-api/billing/model/invoice.model';
import { ConfigService } from '@shared/config/config.service';

@Component({
  selector: 'app-invoice-list',
  templateUrl: './invoice-list.component.html',
  styleUrls: ['./invoice-list.component.scss']
})
export class InvoiceListComponent extends ListBase<IInvoiceModel> implements OnInit {
  constructor(
    private route: ActivatedRoute, private invoiceListUIService: InvoiceListUIService,
    private refreshService: RefreshService, public config: ConfigService,
  ) {
    super(route, invoiceListUIService, refreshService, 'invoices');
  }

  ngOnInit() {
    super.ngOnInit();
  }
}
