mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-28 07:49:41 +01:00
28 lines
735 B
TypeScript
28 lines
735 B
TypeScript
import { Component, Input } from "@angular/core";
|
|
|
|
import { Icon } from "../icon";
|
|
|
|
import { SideNavService } from "./side-nav.service";
|
|
|
|
@Component({
|
|
selector: "bit-nav-logo",
|
|
templateUrl: "./nav-logo.component.html",
|
|
})
|
|
export class NavLogoComponent {
|
|
/** Icon that is displayed when the side nav is closed */
|
|
@Input() closedIcon = "bwi-shield";
|
|
|
|
/** Icon that is displayed when the side nav is open */
|
|
@Input({ required: true }) openIcon: Icon;
|
|
|
|
/**
|
|
* Route to be passed to internal `routerLink`
|
|
*/
|
|
@Input({ required: true }) route: string | any[];
|
|
|
|
/** Passed to `attr.aria-label` and `attr.title` */
|
|
@Input({ required: true }) label: string;
|
|
|
|
constructor(protected sideNavService: SideNavService) {}
|
|
}
|