1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-24 04:04:24 +00:00
Files
browser/libs/vault/src/cipher-view/item-history/item-history-v2.component.ts
2024-09-03 10:25:10 -05:00

38 lines
929 B
TypeScript

import { CommonModule } from "@angular/common";
import { Component, Input } from "@angular/core";
import { RouterModule } from "@angular/router";
import { JslibModule } from "@bitwarden/angular/jslib.module";
import { CipherType } from "@bitwarden/common/vault/enums";
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
import {
CardComponent,
LinkModule,
SectionComponent,
SectionHeaderComponent,
TypographyModule,
} from "@bitwarden/components";
@Component({
selector: "app-item-history-v2",
templateUrl: "item-history-v2.component.html",
standalone: true,
imports: [
CommonModule,
JslibModule,
RouterModule,
CardComponent,
SectionComponent,
SectionHeaderComponent,
TypographyModule,
LinkModule,
],
})
export class ItemHistoryV2Component {
@Input() cipher: CipherView;
get isLogin() {
return this.cipher.type === CipherType.Login;
}
}