'use client'; import { PaymentOrder } from '@/lib/payment-api'; interface PaymentSuccessProps { order: PaymentOrder; paymentUrl?: string; onContinue?: () => void; } export function PaymentSuccess({ order, paymentUrl, onContinue }: PaymentSuccessProps) { return (

支付成功

订单号: {order.orderNo}

¥{order.amount.toFixed(2)}
{paymentUrl && (
前往支付
)} {onContinue && ( )}
); }