1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-27 04:03:00 +02:00
bitwarden-browser/apps/web/src/app/reports/shared/report-card/report-card.component.ts
2022-11-28 18:59:46 +01:00

26 lines
611 B
TypeScript

import { Component, Input } from "@angular/core";
import { Icon } from "@bitwarden/components";
import { ReportVariant } from "../models/report-variant";
@Component({
selector: "app-report-card",
templateUrl: "report-card.component.html",
})
export class ReportCardComponent {
@Input() title: string;
@Input() description: string;
@Input() route: string;
@Input() icon: Icon;
@Input() variant: ReportVariant;
protected get disabled() {
return this.variant != ReportVariant.Enabled;
}
protected get requiresPremium() {
return this.variant == ReportVariant.RequiresPremium;
}
}