import { Text } from "preact-i18n"; import { Helmet } from "react-helmet"; import styles from "./Login.module.scss"; import { useContext } from "preact/hooks"; import { APP_VERSION } from "../../version"; import { LIBRARY_VERSION } from "revolt.js"; import { Route, Switch } from "react-router-dom"; import { ThemeContext } from "../../context/Theme"; import { AppContext } from "../../context/revoltjs/RevoltClient"; import background from "./background.jpg"; import { FormLogin } from "./forms/FormLogin"; import { FormCreate } from "./forms/FormCreate"; import { FormResend } from "./forms/FormResend"; import { FormReset, FormSendReset } from "./forms/FormReset"; export const Login = () => { const theme = useContext(ThemeContext); const { client } = useContext(AppContext); return (
API:{" "} {client.configuration?.revolt ?? "???"}{" "} · revolt.js: {LIBRARY_VERSION}{" "} · App: {APP_VERSION} {/**/}
‎@lorenzoherrera ‏ยท unsplash.com
); };