mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-27 04:03:00 +02:00
26 lines
611 B
TypeScript
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;
|
|
}
|
|
}
|