import { Suspense } from 'react';
import EmailUnsubscribePage from './EmailUnsubscribePage';
import { Main } from '@/app/ui/Main';

export default async function Page({ params: { id } }: { params: { id: string } }) {
    return (
        <Main>
            <Suspense fallback={<div className="text-center p-8">Loading...</div>}>
                <EmailUnsubscribePage shareId={id} />
            </Suspense>
        </Main>
    );
}
