import { EmailDetailView } from "../../../../components/email-detail-view";

type AdminEmailDetailPageProps = {
  params: Promise<{
    emailId: string;
  }>;
};

export default async function AdminEmailDetailPage({ params }: AdminEmailDetailPageProps) {
  const resolved = await params;
  return <EmailDetailView mode="admin" emailId={resolved.emailId} />;
}
