mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +00:00
26 lines
539 B
TypeScript
26 lines
539 B
TypeScript
import { Component, EventEmitter, Input, Output, TemplateRef, ViewChild } from "@angular/core";
|
|
|
|
@Component({
|
|
selector: "bit-breadcrumb",
|
|
templateUrl: "./breadcrumb.component.html",
|
|
})
|
|
export class BreadcrumbComponent {
|
|
@Input()
|
|
icon?: string;
|
|
|
|
@Input()
|
|
route?: string | any[] = undefined;
|
|
|
|
@Input()
|
|
queryParams?: Record<string, string> = {};
|
|
|
|
@Output()
|
|
click = new EventEmitter();
|
|
|
|
@ViewChild(TemplateRef, { static: true }) content: TemplateRef<unknown>;
|
|
|
|
onClick(args: unknown) {
|
|
this.click.next(args);
|
|
}
|
|
}
|