"use client"; import Link from "next/link"; import { Suspense } from "react"; import { FormProvider, useForm } from "react-hook-form"; import { useTranslation } from "react-i18next"; import { QuivrLogo } from "@/lib/assets/QuivrLogo"; import { Divider } from "@/lib/components/ui/Divider"; import { useAuthModes } from "@/lib/hooks/useAuthModes"; import { EmailLogin } from "../(auth)/login/components/EmailLogin"; import { GoogleLoginButton } from "../(auth)/login/components/GoogleLogin"; import { useLogin } from "../(auth)/login/hooks/useLogin"; import { EmailAuthContextType } from "../(auth)/login/types"; const Main = (): JSX.Element => { useLogin(); const { googleSso, password, magicLink } = useAuthModes(); const methods = useForm({ defaultValues: { email: "", password: "", }, }); const { t } = useTranslation(["translation", "login"]); return (

{t("talk_to", { ns: "login" })}{" "} Quivr

{googleSso && (password || magicLink) && ( )} {googleSso && }

{t("restriction_message", { ns: "login" })}

); }; const Login = (): JSX.Element => { return (
); }; export default Login;