2023-10-18 13:47:02 +00:00
|
|
|
import { FC, ReactNode } from "react";
|
|
|
|
// components
|
|
|
|
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-01-31 10:12:20 +00:00
|
|
|
<div className="inset-y-0 z-20 flex h-full w-full gap-2 overflow-x-hidden overflow-y-scroll">
|
|
|
|
<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-01-31 10:12:20 +00:00
|
|
|
<div className="w-full pl-10 sm:pl-10 md:pl-0 lg:pl-0">
|
|
|
|
{children}
|
|
|
|
</div>
|
2023-10-25 10:18:57 +00:00
|
|
|
</div>
|
2023-10-18 13:47:02 +00:00
|
|
|
);
|
|
|
|
};
|