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 ? <>
{t("introCreateEvent")}
> : <>{loginMessage}
{input} > }