'use client'; import { Suspense, useEffect } from 'react'; import Link from 'next/link'; import { useSearchParams } from 'next/navigation'; // Post-payment confirmation. Designed to fit in a single viewport (no // scrolling on a standard laptop) — two-column composition on desktop, // stacked on mobile. Mood: a quiet typeset acknowledgement card you // might find tucked inside a gallery program. No confetti, no shout. export default function CheckEmailPage() { return (
}> ); } function Thanks() { const params = useSearchParams(); const email = params.get('email') ?? 'your email'; const orderId = params.get('orderId'); const paid = params.get('paid') === '1'; // Clear the "pending order" pointer once payment has succeeded so a // subsequent /builder visit doesn't bounce the customer to the // resume screen for an order that's already paid + queued. Also drop // the data-build-active attribute the pre-paint script stamped onto // from the (still-set) sessionStorage keys when this page // loaded — otherwise the header keeps showing "Resume portrait" on // this very view, since clearing sessionStorage alone doesn't // re-run that script. useEffect(() => { if (!paid) return; try { sessionStorage.removeItem('lg_pending_order_id'); sessionStorage.removeItem('lg_build_progress'); document.documentElement.removeAttribute('data-build-active'); } catch {} }, [paid]); return (
); }