import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
import { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgSelectModule } from '@ng-select/ng-select';
import { TranslateModule } from '@ngx-translate/core';
import { pageSizeOptions } from '../../utils/app.constants';
import { ButtonManagementService } from '../../services/button-management.service';

@Component({
  selector: 'app-tran-purpose-setup',
  imports: [TranslateModule, CommonModule, ReactiveFormsModule, FormsModule, NgSelectModule],
  templateUrl: './tran-purpose-setup.component.html',
  styleUrl: './tran-purpose-setup.component.scss'
})
export class TranPurposeSetupComponent {
  pageSizeOptions = pageSizeOptions
  renewalDataExpanded: any;
  itemsPerPage: number = 5;
  buttonPermissions: any;

  constructor(
    private buttonManagementService: ButtonManagementService
  ){}

  ngOnInit(){
    this.getButtonPermissions();
  }

  getButtonPermissions() {
    this.buttonPermissions = this.buttonManagementService.buttonPermissions["thirdPartyRegistration"];
  }
}
