mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 07:04:22 +00:00
18 lines
No EOL
505 B
TypeScript
18 lines
No EOL
505 B
TypeScript
import { useTranslation } from "next-i18next"
|
|
import { LoginContext } from "../contexts/login"
|
|
import { useDefinedContext } from "../utils/definedContext"
|
|
|
|
export function LogoutLink() {
|
|
const [login, setLogin] = useDefinedContext(LoginContext)
|
|
const {t} = useTranslation("common")
|
|
|
|
return (
|
|
<small>
|
|
(
|
|
<a href="javascript:void(0)" onClick={() => setLogin(null)}>
|
|
{t("introTelegramLogout")}
|
|
</a>
|
|
)
|
|
</small>
|
|
)
|
|
} |