plane/web/layouts/settings-layout/profile/layout.tsx
sriram veeraghanta 3d09a69d58
fix: eslint issues and reconfiguring (#3891)
* fix: eslint fixes

---------

Co-authored-by: gurusainath <gurusainath007@gmail.com>
2024-03-06 18:39:14 +05:30

33 lines
944 B
TypeScript

import { FC, ReactNode } from "react";
// layout
import { CommandPalette } from "components/command-palette";
import { UserAuthWrapper } from "layouts/auth-layout";
import { ProfileLayoutSidebar } from "layouts/settings-layout";
// components
interface IProfileSettingsLayout {
children: ReactNode;
header?: ReactNode;
}
export const ProfileSettingsLayout: FC<IProfileSettingsLayout> = (props) => {
const { children, header } = props;
return (
<>
<CommandPalette />
<UserAuthWrapper>
<div className="relative flex h-screen w-full overflow-hidden">
<ProfileLayoutSidebar />
<main className="relative flex h-full w-full flex-col overflow-hidden bg-custom-background-100">
{header}
<div className="h-full w-full overflow-x-hidden overflow-y-scroll">
{children}
</div>
</main>
</div>
</UserAuthWrapper>
</>
);
};