import React from 'react'; import { Link, Redirect, Route, Switch } from 'react-router-dom'; import LandingGradient from 'soapbox/components/landing-gradient'; import SvgIcon from 'soapbox/components/ui/icon/svg-icon'; import BundleContainer from 'soapbox/features/ui/containers/bundle_container'; import { NotificationsContainer } from 'soapbox/features/ui/util/async-components'; import { useAppSelector, useSoapboxConfig } from 'soapbox/hooks'; import { Card, CardBody } from '../../components/ui'; import LoginPage from '../auth_login/components/login_page'; import PasswordReset from '../auth_login/components/password_reset'; import PasswordResetConfirm from '../auth_login/components/password_reset_confirm'; import RegistrationForm from '../auth_login/components/registration_form'; import ExternalLoginForm from '../external_login/components/external-login-form'; import RegisterInvite from '../register_invite'; import Verification from '../verification'; import EmailPassthru from '../verification/email_passthru'; const AuthLayout = () => { const { logo } = useSoapboxConfig(); const siteTitle = useAppSelector(state => state.instance.title); return (
{logo ? ( {siteTitle} ) : ( )}
{(Component) => }
); }; export default AuthLayout;