import { LoaderIcon } from "@lume/icons"; import { cn } from "@lume/utils"; import { createLazyFileRoute, useNavigate } from "@tanstack/react-router"; import { useState } from "react"; import { useTranslation } from "react-i18next"; export const Route = createLazyFileRoute("/auth/create/")({ component: Screen, }); function Screen() { const navigate = useNavigate(); const [t] = useTranslation(); const [method, setMethod] = useState<"self" | "managed">("self"); const [loading, setLoading] = useState(false); const next = () => { setLoading(true); if (method === "self") { navigate({ to: "/auth/create/self" }); } else { navigate({ to: "/auth/create/managed" }); } }; return (

{t("signup.title")}

{t("signup.subtitle")}

{method === "managed" ? (

Attention:

You're chosing Managed by Provider, this feature still in "Beta".

Some functions still missing or not work as expected, you shouldn't create your main account with this method

Learn more
) : null}
); }