'use client'; //=========================================== // THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template //=========================================== import { Typography } from "@hexclave/ui"; import { KeyRound } from "lucide-react"; import { useTranslation } from "../../lib/translations"; import { MaybeFullPage } from "../elements/maybe-full-page"; const configSnippet = `auth: { password: { allowSignIn: true }, otp: { allowSignIn: true }, }`; /** * Shown instead of the sign-in/sign-up form when a project has no auth methods at all (no password, no * OTP, no passkey, no OAuth provider). Without this, the page would look broken: there is nothing the end * user can do, and the developer gets no hint about what went wrong or how to fix it. */ export function NoAuthMethodsMessageCard(props: { fullPage?: boolean, projectDisplayName?: string, }) { const { t } = useTranslation(); return (
{t("Sign-in is not available")} {props.projectDisplayName == null ? t("This app has no authentication methods enabled, so nobody can sign in yet.") : t("{projectDisplayName} has no authentication methods enabled, so nobody can sign in yet.", { projectDisplayName: props.projectDisplayName })}
{t("Are you the developer?")} {t("Enable at least one sign-in method in your hexclave.config.ts:")}
{configSnippet}
{t("Or turn one on in the Hexclave dashboard, under Auth Methods.")}
); }