import { FC, ReactNode } from "react"; import { observer } from "mobx-react-lite"; // components import { CommandPalette } from "@/components/command-palette"; import { SidebarHamburgerToggle } from "@/components/core/sidebar"; // layouts import { WorkspaceAuthWrapper, ProjectAuthWrapper } from "@/layouts/auth-layout"; // wrappers import { AuthenticationWrapper } from "@/lib/wrappers"; import { AppSidebar } from "./sidebar"; export interface IAppLayout { children: ReactNode; header: ReactNode; withProjectWrapper?: boolean; mobileHeader?: ReactNode; } export const AppLayout: FC = observer((props) => { const { children, header, withProjectWrapper = false, mobileHeader } = props; return (
{header}
{mobileHeader && mobileHeader}
{withProjectWrapper ? {children} : <>{children}}
); });