import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
import { UploadService } from '../../../upload';
import { map } from 'rxjs';
import { ResourcesTableComponent } from '../resources-table/resources-table.component';

@Component({
  selector: 'stf-processed-resources-table',
  templateUrl: '../resources-table/resources-table.component.html',
  styleUrls: ['../resources-table.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush,
  standalone: false,
})
export class ProcessedResourcesTableComponent extends ResourcesTableComponent {
  override uploadService = inject(UploadService);
  override totalCount = this.uploadService.statusCount.pipe(map((statusCount) => statusCount.processed));
}
