import { Trans, useTranslation } from "next-i18next" import { LoginContext } from "../contexts/login" import { useDefinedContext } from "../utils/definedContext" import { InputSlug } from "./InputEventSlug" import { LoginButton } from "./LoginButton" import { LogoutLink } from "./LogoutLink" import { TelegramUser } from "./TelegramUser" export function Intro() { const {t} = useTranslation("common") const [login, _] = useDefinedContext(LoginContext) const loginMessage = login ? <> introTelegramLoggedIn(1: )
: <> {t("introTelegramLogin")} const input = login ? <>

{t("introCreateEvent")}

{window.location.protocol}// {window.location.host}/events/ : <> return <>

{loginMessage}

{input} }