import { observer } from "mobx-react-lite"; import Image from "next/image"; // mobx import { Loader } from "@plane/ui"; import { SignInRoot, UserLoggedIn } from "@/components/accounts"; import { useMobxStore } from "@/lib/mobx/store-provider"; // components // images import BluePlaneLogoWithoutText from "public/plane-logos/blue-without-text-new.png"; export const LoginView = observer(() => { // store const { user: { currentUser, loader }, } = useMobxStore(); return ( <> {loader ? (
Loading
// TODO: Add spinner instead ) : ( <> {currentUser ? ( ) : (
Plane Logo Plane
{!true ? (
) : ( )}
)} )} ); });