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

@Component({
  selector: 'superAdmin-deviceBrands',
  templateUrl: './list.component.html',
  imports: [PageDataListComponent, DeviceBrandFormComponent],
})
export class DeviceBrandsComponent extends AbstractList<IDeviceBrandResponse> {
  private readonly service = inject(DeviceBrandsService);

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

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

  // toSinglePage(partner: IDeviceBrandResponse) {
  //   this.router.navigateByUrl(partnersNamedRoutes.partner.meta.pagePath!(partner.id));
  // }
}
