"use client"; import { FadeIn } from "@/components/landing/fade-in"; import Link from "next/link"; import * as React from "react"; import { ErrorBanner, WarnBanner } from "../../banners"; import { EmailCode } from "../email-code"; import { MixSignIn } from "../mix-signin"; import { OAuthSignIn } from "../oauth-signin"; import toast from "react-hot-toast"; import initTranslations from "@/app/i18n"; import { useTranslation } from "react-i18next"; export default function SignInPage({ params: { locale } }: { params: { locale: string } }) { const { t } = useTranslation(); const [verify, setVerify] = React.useState(false); const [accountNotFound, setAccountNotFound] = React.useState(false); const [error, setError] = React.useState(null); const [username, setUsername] = React.useState(""); const [password, setPassword] = React.useState(""); return (
{accountNotFound ? (

{t("auth.account_not_found")}

) : null} {error ? {error} : null} {verify ? ( ) : ( <>

{t("login")}

{ e.preventDefault(); toast.success('coming soon') }}> {t("auth.frogot_password")}

{/* */}
{t("auth.or")}
{t("auth.creat_account")}
)}
); }