import { FC, ReactNode } from "react"; // layouts import { AdminAuthWrapper, UserAuthWrapper } from "layouts/auth-layout"; // components import { InstanceAdminSidebar } from "./sidebar"; import { InstanceAdminHeader } from "./header"; import { InstanceSetupView } from "components/instance"; // store import { useMobxStore } from "lib/mobx/store-provider"; export interface IInstanceAdminLayout { children: ReactNode; } export const InstanceAdminLayout: FC = (props) => { const { children } = props; // store const { instance: { instance }, user: { currentUser }, } = useMobxStore(); // fetch console.log("instance", instance); if (instance?.is_setup_done === false) { return ; } return ( <>
<>{children}
); };