import { Alert } from "@/components/alert"; import { DynamicTheme } from "@/components/dynamic-theme"; import { VerifyEmailForm } from "@/components/verify-email-form"; import { getBrandingSettings, getLoginSettings } from "@/lib/zitadel"; import { ExclamationTriangleIcon } from "@heroicons/react/24/outline"; import { getLocale, getTranslations } from "next-intl/server"; export default async function Page({ searchParams }: { searchParams: any }) { const locale = getLocale(); const t = await getTranslations({ locale, namespace: "verify" }); const tError = await getTranslations({ locale, namespace: "error" }); const { userId, loginName, sessionId, code, submit, organization, authRequestId, } = searchParams; const branding = await getBrandingSettings(organization); const loginSettings = await getLoginSettings(organization); return (

{t("title")}

{t("description")}

{!userId && (
{tError("unknownContext")}
)} {userId ? ( ) : (
{t("userIdMissing")}
)}
); }