import { Twitter, Github, Mastodon } from "@styled-icons/boxicons-logos"; import { observer } from "mobx-react-lite"; import { Helmet } from "react-helmet"; import { Link, Route, Switch } from "react-router-dom"; import styles from "./Login.module.scss"; import { Text } from "preact-i18n"; import { useApplicationState } from "../../mobx/State"; import wideSVG from "/assets/wide.svg"; import LocaleSelector from "../../components/common/LocaleSelector"; import { Titlebar } from "../../components/native/Titlebar"; import { useSystemAlert } from "../../updateWorker"; import { StatusBar } from "../RevoltApp"; import { FormCreate } from "./forms/FormCreate"; import { FormLogin } from "./forms/FormLogin"; import { FormReset, FormSendReset } from "./forms/FormReset"; import { FormResend, FormVerify } from "./forms/FormVerify"; export default observer(() => { const state = useApplicationState(); const theme = state.settings.theme; const alert = useSystemAlert(); return ( <> {window.isNative && !window.native.getConfig().frame && ( )} {alert && (
{alert.text}
{alert.actions?.map((action) => action.type === "internal" ? null : action.type === "external" ? (
{action.text}
{" "}
) : null, )}
)}
{!("native" in window) && ( )}
{/*
*/}
{/*
API: {configuration?.revolt ?? "???"}{" "} · revolt.js: {LIBRARY_VERSION}{" "} · App: {APP_VERSION}
*/}
{/*
*/} {/*
*/}
‎@fakurian ‏ยท unsplash.com
); });