feat(subscription): support voice package mode

This commit is contained in:
2026-06-22 09:53:35 +08:00
parent cf435e8fbb
commit df7f673855
6 changed files with 136 additions and 35 deletions
@@ -11,15 +11,19 @@ import styles from "./subscription-banner.module.css";
export interface SubscriptionBannerProps {
className?: string;
title?: string;
}
export function SubscriptionBanner({ className }: SubscriptionBannerProps) {
export function SubscriptionBanner({
className,
title = "Subscribe to become the VIP Member",
}: SubscriptionBannerProps) {
return (
<div
className={[styles.banner, className].filter(Boolean).join(" ")}
role="note"
>
<p className={styles.text}>Subscribe to become the VIP Member</p>
<p className={styles.text}>{title}</p>
<span className={styles.pointer} aria-hidden="true" />
</div>
);
@@ -64,7 +64,9 @@ export function SubscriptionCheckoutButton({
? "Processing payment..."
: payment.isCreatingOrder
? "Creating order..."
: "Confirm the agreement and Activate";
: payment.agreed
? "Pay and Activiate"
: "Confirm the agreement and Activate";
const handleClick = () => {
if (disabled || isLoading) return;
@@ -55,6 +55,10 @@
margin-top: var(--spacing-lg);
}
.benefitsPlaceholder {
min-height: 160px;
}
.ctaSlot {
margin-top: var(--spacing-xl);
}