"use client"; import { AuthenticationMethodType, LoginSettings, login, } from "@zitadel/server"; import Link from "next/link"; import { BadgeState, StateBadge } from "./StateBadge"; import clsx from "clsx"; import { CheckIcon } from "@heroicons/react/24/outline"; import { EMAIL, SMS, TOTP, U2F } from "./AuthMethods"; type Props = { loginName?: string; sessionId?: string; authRequestId?: string; organization?: string; loginSettings: LoginSettings; userMethods: AuthenticationMethodType[]; checkAfter: boolean; }; export default function ChooseSecondFactorToSetup({ loginName, sessionId, authRequestId, organization, loginSettings, userMethods, checkAfter, }: Props) { const params = new URLSearchParams({}); if (loginName) { params.append("loginName", loginName); } if (sessionId) { params.append("sessionId", sessionId); } if (authRequestId) { params.append("authRequestId", authRequestId); } if (organization) { params.append("organization", organization); } if (checkAfter) { params.append("checkAfter", "true"); } return (