2023-10-18 13:47:02 +00:00
|
|
|
import { FC, ReactNode } from "react";
|
|
|
|
// layouts
|
2023-10-23 11:24:26 +00:00
|
|
|
import { UserAuthWrapper, ProjectAuthWrapper, WorkspaceAuthWrapper } from "layouts/auth-layout";
|
2023-10-18 13:47:02 +00:00
|
|
|
// components
|
|
|
|
import { AppSidebar } from "layouts/app-layout";
|
|
|
|
import { ProjectSettingsSidebar } from "./sidebar";
|
|
|
|
|
|
|
|
export interface IProjectSettingLayout {
|
|
|
|
children: ReactNode;
|
|
|
|
header: ReactNode;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const ProjectSettingLayout: FC<IProjectSettingLayout> = (props) => {
|
|
|
|
const { children, header } = props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<UserAuthWrapper>
|
2023-10-23 11:24:26 +00:00
|
|
|
<WorkspaceAuthWrapper>
|
|
|
|
<ProjectAuthWrapper>
|
|
|
|
<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">
|
|
|
|
{header}
|
|
|
|
<div className="h-full w-full overflow-hidden">
|
|
|
|
<div className="flex gap-2 relative h-full w-full overflow-x-hidden overflow-y-scroll">
|
|
|
|
<div className="w-80 pt-8 overflow-y-hidden flex-shrink-0">
|
|
|
|
<ProjectSettingsSidebar />
|
|
|
|
</div>
|
|
|
|
{children}
|
2023-10-18 13:47:02 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-10-23 11:24:26 +00:00
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
</ProjectAuthWrapper>
|
|
|
|
</WorkspaceAuthWrapper>
|
2023-10-18 13:47:02 +00:00
|
|
|
</UserAuthWrapper>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|