import { useEffect } from "react"; import Link from "next/link"; import { observer } from "mobx-react-lite"; import Image from "next/image"; import { useTheme } from "next-themes"; import { Lightbulb } from "lucide-react"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // hooks import useSignInRedirection from "hooks/use-sign-in-redirection"; // components import { SignInRoot } from "components/account"; // ui import { Loader, Spinner } from "@plane/ui"; // images import BluePlaneLogoWithoutText from "public/plane-logos/blue-without-text.png"; import latestFeatures from "public/onboarding/onboarding-pages.svg"; export type AuthType = "sign-in" | "sign-up"; export const SignInView = observer(() => { // store const { user: { currentUser }, appConfig: { envConfig }, } = useMobxStore(); // next-themes const { resolvedTheme } = useTheme(); // sign in redirection hook const { isRedirecting, handleRedirection } = useSignInRedirection(); useEffect(() => { handleRedirection(); }, [handleRedirection]); if (isRedirecting || currentUser) return (
); return (
Plane Logo Plane
{!envConfig ? (
) : ( <>

Pages gets a facelift! Write anything and use Galileo to help you start.{" "} Learn more

Plane Issues
)}
); });