import { FC, ReactNode } from "react"; // layouts import { UserAuthWrapper, WorkspaceAuthWrapper, ProjectAuthWrapper } from "layouts/auth-layout"; // components import { CommandPalette } from "components/command-palette"; import { AppSidebar } from "./sidebar"; export interface IAppLayout { children: ReactNode; header: ReactNode; withProjectWrapper?: boolean; } export const AppLayout: FC = (props) => { const { children, header, withProjectWrapper = false } = props; return ( <>
{header}
{withProjectWrapper ? {children} : <>{children}}
); };