import { Component, OnInit } from '@angular/core';
import { IObjectController } from '@objects-view/interfaces/object-controller';
import { StaticObjectController } from '@objects-view/static-object-controller';
import { RecurringPaymentOptionsDetailsComponent } from '../tabs/recurring-payment-options-details/recurring-payment-options-details.component';
import { ActivatedRoute } from '@angular/router';

@Component({
  selector: 'app-recurring-payment-options',
  templateUrl: './recurring-payment-options.component.html',
  styleUrls: ['./recurring-payment-options.component.scss']
})
export class RecurringPaymentOptionsComponent implements OnInit {
  public objectController: IObjectController = new StaticObjectController({
    header: {
      title: {
        text: $localize`Recurring payment options`,
      }
    },
    tabs: [
      {
        tabName: $localize`Recurring payment options`,
        tabIdentifier: 'recurring-payment-options',
        component: RecurringPaymentOptionsDetailsComponent,
      },
    ],
  }, null, {
    recurringPaymentOptionsResponse: this.activatedRoute.snapshot.data.recurring_payment_options,
  });

  constructor(private activatedRoute: ActivatedRoute) { }

  ngOnInit(): void {
  }

}
