All files / app/codeCharta/ui/ribbonBar/searchPanel/matchingFilesCounter matchingFilesCounter.component.ts

100% Statements 10/10
100% Branches 0/0
100% Functions 1/1
100% Lines 9/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 254x 4x     4x 4x 4x 4x 4x                 4x       9x      
import { Component } from "@angular/core"
import { Store } from "@ngrx/store"
import { Observable } from "rxjs"
import { CcState } from "../../../../codeCharta.model"
import { MatchingFilesCounter, matchingFilesCounterSelector } from "./selectors/matchingFilesCounter.selector"
import { ThumbTackButtonComponent } from "../thumbTackButton/thumbTackButton.component"
import { SortingButtonComponent } from "../sortingButton/sortingButton.component"
import { SortingOptionComponent } from "../sortingOption/sortingOption.component"
import { AsyncPipe } from "@angular/common"
 
@Component({
    selector: "cc-matching-files-counter",
    templateUrl: "./matchingFilesCounter.component.html",
    styleUrls: ["./matchingFilesCounter.component.scss"],
    standalone: true,
    imports: [ThumbTackButtonComponent, SortingButtonComponent, SortingOptionComponent, AsyncPipe]
})
export class MatchingFilesCounterComponent {
    matchingFileCounters$: Observable<MatchingFilesCounter>
 
    constructor(store: Store<CcState>) {
        this.matchingFileCounters$ = store.select(matchingFilesCounterSelector)
    }
}