mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
c270c8689f
* chore: implemented project layout and integrated sidebar component * chore: implemented workspace layout and integrated sidebar component
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import { FC, ReactNode } from "react";
|
|
// layouts
|
|
import { UserAuthWrapper, WorkspaceAuthWrapper } from "layouts/auth-layout";
|
|
// components
|
|
import { AppSidebar } from "layouts/app-layout";
|
|
import { WorkspaceSettingsSidebar } from "./sidebar";
|
|
|
|
export interface IWorkspaceSettingLayout {
|
|
children: ReactNode;
|
|
header: ReactNode;
|
|
}
|
|
|
|
export const WorkspaceSettingLayout: FC<IWorkspaceSettingLayout> = (props) => {
|
|
const { children, header } = props;
|
|
|
|
return (
|
|
<>
|
|
<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">
|
|
{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">
|
|
<WorkspaceSettingsSidebar />
|
|
</div>
|
|
{children}
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</WorkspaceAuthWrapper>
|
|
</UserAuthWrapper>
|
|
</>
|
|
);
|
|
};
|