'use client' import { useEffect, useState, Suspense } from 'react' import { Container, Typography, Box, Button, Paper, CircularProgress, Alert, } from '@mui/material' import { CheckCircle, Favorite } from '@mui/icons-material' import { useRouter, useSearchParams } from 'next/navigation' import { useLocale } from 'next-intl' function SuccessContent() { const router = useRouter() const locale = useLocale() const searchParams = useSearchParams() const sessionId = searchParams.get('session_id') const [loading, setLoading] = useState(true) const [error, setError] = useState(null) useEffect(() => { if (!sessionId) { setError('No session ID found') setLoading(false) return } // Verify the session was successful const verifySession = async () => { try { // In a real implementation, you might want to verify the session // with a backend API call here setLoading(false) } catch (err) { setError('Failed to verify donation') setLoading(false) } } verifySession() }, [sessionId]) if (loading) { return ( ) } if (error) { return ( {error} ) } return ( Thank You for Your Donation! Your generous gift helps keep God's Word free and accessible to believers around the world. Your Impact Every contribution — big or small — directly supports the servers, translations, and technology that make Biblical Guide possible. You're not just giving to a platform; you're opening doors to Scripture for millions who cannot afford to pay. Freely you have received; freely give. — Matthew 10:8 You will receive a confirmation email shortly with your donation receipt. Biblical Guide is a ministry supported by believers like you. Thank you for partnering with us to keep the Gospel free forever. ) } export default function DonationSuccessPage() { return ( } > ) }