// import { CatalogRoleTagComponent } from '@/shared/catalog/roles';
import { AbstractList } from '@/shared/abstractClasses/abstract-list';
import { PageDataListComponent } from '@/shared/components/pageDataList/page-data-list.component';
import { providerListConfig } from '@/shared/constants/list-configs';
import { Component, inject } from '@angular/core';
import { ProviderFormComponent } from '../components/form.component';
import { IProviderResponse } from '../models';
import { ProvidersService } from '../services/main.service';

@Component({
  selector: 'superAdmin-providers',
  templateUrl: './list.component.html',
  imports: [PageDataListComponent, ProviderFormComponent],
})
export class ProvidersComponent extends AbstractList<IProviderResponse> {
  private readonly service = inject(ProvidersService);

  override setColumns(): void {
    this.columns = providerListConfig.columns;
  }

  override getDataRequest() {
    return this.service.getAll();
  }
}
