2023-10-18 13:47:02 +00:00
|
|
|
import { FC, ReactNode } from "react";
|
|
|
|
// components
|
2024-04-29 07:29:04 +00:00
|
|
|
import MobileWorkspaceSettingsTabs from "@/components/workspace/settings/mobile-workspace-settings-tabs";
|
2023-10-18 13:47:02 +00:00
|
|
|
import { WorkspaceSettingsSidebar } from "./sidebar";
|
|
|
|
|
|
|
|
export interface IWorkspaceSettingLayout {
|
|
|
|
children: ReactNode;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const WorkspaceSettingLayout: FC<IWorkspaceSettingLayout> = (props) => {
|
2023-10-25 10:18:57 +00:00
|
|
|
const { children } = props;
|
2023-10-18 13:47:02 +00:00
|
|
|
|
|
|
|
return (
|
2024-03-06 08:48:19 +00:00
|
|
|
<div className="inset-y-0 z-20 flex h-full w-full gap-2">
|
2024-01-31 10:12:20 +00:00
|
|
|
<div className="w-80 flex-shrink-0 overflow-y-hidden pt-8 sm:hidden hidden md:block lg:block">
|
2023-10-25 10:18:57 +00:00
|
|
|
<WorkspaceSettingsSidebar />
|
|
|
|
</div>
|
2024-04-29 07:29:04 +00:00
|
|
|
<div className="flex flex-col relative w-full overflow-hidden">
|
|
|
|
<MobileWorkspaceSettingsTabs />
|
|
|
|
<div className="w-full pl-4 md:pl-0 md:py-8 py-2 overflow-x-hidden overflow-y-scroll vertical-scrollbar scrollbar-md">
|
|
|
|
{children}
|
|
|
|
</div>
|
2024-01-31 10:12:20 +00:00
|
|
|
</div>
|
2023-10-25 10:18:57 +00:00
|
|
|
</div>
|
2023-10-18 13:47:02 +00:00
|
|
|
);
|
|
|
|
};
|