import React, { useRef } from "react" import cn from "classnames" import style from "./index.module.scss" import { useLocation, Route, Switch } from "react-router-dom" import { useState } from "react" import Bubbles from "@/components/Loading/Bubbles" import { Trans, Translation, useTranslation } from "react-i18next" export default function Login(props: any) { const [isSuccess, setIsSuccess] = useState(false) const [usename, setUsername] = useState("23") const [password, setPassword] = useState("") const { t ,i18n} = useTranslation() function clickLogin(event: any) { event.preventDefault() setIsSuccess(true) setTimeout(() => { setUsername('') setPassword('') setIsSuccess(false) }, 2000) } return (

{t('home')}阿松大

{usename}

{password}

home

{t =>

{t('home')}

}

login.title

setUsername(e.target.value)} placeholder={t('login.username_placeholder')} /> setPassword(e.target.value)} placeholder={t('login.password_placeholder')} autoComplete="" />
) }