"use client"; import { useTranslations } from "next-intl"; import Image from "next/image"; import { getPublicApiUrl } from "../../../../client/config"; import { isDiscordAuthEnabled, isGoogleAuthEnabled, isInternalAuthEnabled, isRegistrationAllowed, } from "../../../../login"; import { Button, CardDescription, CardFooter, CardHeader, CardTitle, Link } from "../../../../shadcnui"; import { useAuthContext } from "../../contexts"; import { AuthComponent } from "../../enums"; import { GoogleSignInButton } from "../buttons/GoogleSignInButton"; export function LandingComponent() { const t = useTranslations(); const { setComponentType } = useAuthContext(); return ( <> Logo {t(`common.title`)} {t(`common.description`)} {isInternalAuthEnabled() && ( <> {isRegistrationAllowed() && ( setComponentType(AuthComponent.Register)} > )} setComponentType(AuthComponent.Login)}> )} {isGoogleAuthEnabled() && } {isDiscordAuthEnabled() && ( )} ); }