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

@Component({
  selector: 'admin-licenses',
  templateUrl: './list.component.html',
  imports: [PageDataListComponent],
})
export class LicensesComponent extends AbstractList<ILicenseResponse> {
  private readonly service = inject(LicensesService);

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

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