'use client'; import { Card, CardContent, CardHeader, CardTitle } from '@workspace/ui/components/card'; import { Separator } from '@workspace/ui/components/separator'; import { useTranslations } from 'next-intl'; export function SubscribeBilling({ order }: { order: API.Order }) { const t = useTranslations('subscribe.billing'); const t_c = useTranslations('components.billing'); return ( {t('billingTitle')}
{t('productDiscount')} -¥ {order?.discount_amount}
{t('couponDiscount')} -¥ {order?.coupon_discount_amount}
{t_c('planDuration')} {order?.quantity === 1 ? t_c('30days') : ''} {order?.quantity === 12 ? t_c('365days') : ''}
{t('gift')} -¥ {order?.gift_balance_deduction_amount}
{t('fee')} ¥ {order?.fee}
{t('total')} ¥ {order?.total_amount}
); }