2023-11-23 09:14:06 +00:00
|
|
|
import { FC, ReactNode } from "react";
|
|
|
|
// layout
|
2024-03-19 14:38:35 +00:00
|
|
|
import { CommandPalette } from "@/components/command-palette";
|
|
|
|
import { ProfileLayoutSidebar } from "@/layouts/settings-layout";
|
2024-05-02 12:38:38 +00:00
|
|
|
// wrappers
|
|
|
|
import { AuthenticationWrapper } from "@/lib/wrappers";
|
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 />
|
2024-05-02 12:38:38 +00:00
|
|
|
<AuthenticationWrapper>
|
2023-11-23 09:14:06 +00:00
|
|
|
<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-11 15:39:41 +00:00
|
|
|
<div className="h-full w-full overflow-hidden">{children}</div>
|
2023-11-23 09:14:06 +00:00
|
|
|
</main>
|
|
|
|
</div>
|
2024-05-02 12:38:38 +00:00
|
|
|
</AuthenticationWrapper>
|
2023-11-23 09:14:06 +00:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|