mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
|
import { FC, ReactNode } from "react";
|
||
|
// layouts
|
||
|
import { UserAuthWrapper, WorkspaceAuthWrapper } from "layouts/auth-layout";
|
||
|
// components
|
||
|
import { CommandPalette } from "components/command-palette";
|
||
|
import { AppSidebar } from "./sidebar";
|
||
|
|
||
|
export interface IAppLayout {
|
||
|
children: ReactNode;
|
||
|
header: ReactNode;
|
||
|
}
|
||
|
|
||
|
export const AppLayout: FC<IAppLayout> = (props) => {
|
||
|
const { children, header } = props;
|
||
|
|
||
|
return (
|
||
|
<>
|
||
|
{/* <CommandPalette /> */}
|
||
|
<UserAuthWrapper>
|
||
|
<WorkspaceAuthWrapper>
|
||
|
<div className="relative flex h-screen w-full overflow-hidden">
|
||
|
<AppSidebar />
|
||
|
<main className="relative flex flex-col h-full w-full overflow-hidden bg-custom-background-100">
|
||
|
{/* <div className="relative w-full">{header}</div> */}
|
||
|
{header}
|
||
|
<div className="h-full w-full overflow-hidden">
|
||
|
<div className="relative h-full w-full overflow-x-hidden overflow-y-scroll">{children}</div>
|
||
|
</div>
|
||
|
</main>
|
||
|
</div>
|
||
|
</WorkspaceAuthWrapper>
|
||
|
</UserAuthWrapper>
|
||
|
</>
|
||
|
);
|
||
|
};
|