18 lines
644 B
TypeScript
18 lines
644 B
TypeScript
import { Component } from '@angular/core';
|
|
import { Breadcrumb, BreadcrumbDisplayType, BreadcrumbsService } from '@services/breadcrumbs.service';
|
|
|
|
/** Removed on push change detection because [aria-expanded] doesn't seem to work correctly on the dropdown button */
|
|
|
|
@Component({
|
|
selector: 'redaction-breadcrumbs',
|
|
templateUrl: './breadcrumbs.component.html',
|
|
styleUrls: ['./breadcrumbs.component.scss'],
|
|
})
|
|
export class BreadcrumbsComponent {
|
|
constructor(readonly breadcrumbsService: BreadcrumbsService) {}
|
|
|
|
is(breadcrumb: Breadcrumb, type: BreadcrumbDisplayType): boolean {
|
|
return breadcrumb.type === type;
|
|
}
|
|
}
|