"use client"; import { observer } from "mobx-react"; // components import { InstanceFailureView } from "@/components/instance/failure"; import { InstanceLoading } from "@/components/instance/loading"; import { InstanceSetupForm } from "@/components/instance/setup-form"; // hooks import { useInstance } from "@/hooks/store"; // components import { InstanceSignInForm } from "./sign-in-form"; const HomePage = () => { // store hooks const { instance, error } = useInstance(); // if instance is not fetched, show loading if (!instance && !error) { return (
); } // if instance fetch fails, show failure view if (error) { return (
); } // if instance is fetched and setup is not done, show setup form if (instance && !instance?.is_setup_done) { return (
); } // if instance is fetched and setup is done, show sign in form return (

Manage your Plane instance

Configure instance-wide settings to secure your instance

); }; export default observer(HomePage);