import React from 'react'; import type { Locale } from '@/lib/locale'; interface PayPageLayoutProps { isDark: boolean; isEmbedded?: boolean; maxWidth?: 'sm' | 'lg' | 'full'; title: string; subtitle: string; actions?: React.ReactNode; children: React.ReactNode; locale?: Locale; } export default function PayPageLayout({ isDark, isEmbedded = false, maxWidth = 'full', title, subtitle, actions, children, locale = 'zh', }: PayPageLayoutProps) { const maxWidthClass = maxWidth === 'sm' ? 'max-w-lg' : maxWidth === 'lg' ? 'max-w-6xl' : ''; return (
{!isEmbedded && ( <>
)}
{locale === 'en' ? 'Sub2API Secure Pay' : 'Sub2API 安全支付'}

{title}

{subtitle}

{actions &&
{actions}
}
{children}
); }