import { FC, ReactNode } from "react"; import { observer } from "mobx-react-lite"; // hooks import { InstanceSetupView } from "@/components/instance"; import { useApplication } from "@/hooks/store"; // layouts import { AdminAuthWrapper, UserAuthWrapper } from "@/layouts/auth-layout"; // components import { InstanceAdminHeader } from "./header"; import { InstanceAdminSidebar } from "./sidebar"; export interface IInstanceAdminLayout { children: ReactNode; } export const InstanceAdminLayout: FC = observer((props) => { const { children } = props; // store hooks const { instance: { instance }, } = useApplication(); if (instance?.is_setup_done === false) return ; return ( <>
<>{children}
); });