1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 14:04:03 +00:00

Refactor(billing): Standardize subscription cadence display

This commit is contained in:
Stephon Brown
2026-02-03 16:22:04 -05:00
parent 91f7747df7
commit d32b33da3e
3 changed files with 9 additions and 11 deletions

View File

@@ -1,14 +1,13 @@
import { SubscriptionCadence } from "@bitwarden/common/billing/types/subscription-pricing-tier";
import { BitwardenIcon, ButtonType } from "@bitwarden/components";
export type SubscriptionPricingCardDetails = {
title: string;
tagline: string;
price?: { amount: number; cadence: SubscriptionCadence };
button: {
text: string;
type: ButtonType;
icon?: { type: BitwardenIcon; position: "before" | "after" };
price?: {
amount: number;
cadence: "month" | "monthly" | "year" | "annually";
showPerUser?: boolean;
};
button: { text: string; type: ButtonType; icon?: { type: BitwardenIcon; position: "before" | "after" } };
features: string[];
};