2023-11-23 09:14:06 +00:00
|
|
|
import { FC, ReactNode } from "react";
|
|
|
|
// layout
|
2024-03-06 13:09:14 +00:00
|
|
|
import { CommandPalette } from "components/command-palette";
|
2023-11-23 09:14:06 +00:00
|
|
|
import { UserAuthWrapper } from "layouts/auth-layout";
|
2023-11-29 08:18:07 +00:00
|
|
|
import { ProfileLayoutSidebar } from "layouts/settings-layout";
|
2023-11-23 09:14:06 +00:00
|
|
|
// components
|
|
|
|
|
|
|
|
interface IProfileSettingsLayout {
|
|
|
|
children: ReactNode;
|
2023-11-29 08:18:07 +00:00
|
|
|
header?: ReactNode;
|
2023-11-23 09:14:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const ProfileSettingsLayout: FC<IProfileSettingsLayout> = (props) => {
|
|
|
|
const { children, header } = props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<CommandPalette />
|
|
|
|
<UserAuthWrapper>
|
|
|
|
<div className="relative flex h-screen w-full overflow-hidden">
|
|
|
|
<ProfileLayoutSidebar />
|
2023-12-10 10:18:10 +00:00
|
|
|
<main className="relative flex h-full w-full flex-col overflow-hidden bg-custom-background-100">
|
2023-11-23 09:14:06 +00:00
|
|
|
{header}
|
2024-03-06 15:20:38 +00:00
|
|
|
<div className="h-full w-full overflow-x-hidden overflow-y-scroll">{children}</div>
|
2023-11-23 09:14:06 +00:00
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
</UserAuthWrapper>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|