* feat: noindex/nofollow - On login: nofollow - On app pages: noindex, nofollow https://app.plane.so/plane/browse/WEB-4098/ - https://nextjs.org/docs/app/api-reference/file-conventions/layout - https://nextjs.org/docs/app/building-your-application/routing/route-groups#creating-multiple-root-layouts - https://nextjs.org/docs/app/api-reference/functions/generate-metadata#link-relpreload * chore: address PR feedback
31 lines
831 B
TypeScript
31 lines
831 B
TypeScript
"use client";
|
|
|
|
import { ReactNode } from "react";
|
|
// components
|
|
import { CommandPalette } from "@/components/command-palette";
|
|
// wrappers
|
|
import { AuthenticationWrapper } from "@/lib/wrappers";
|
|
// layout
|
|
import { ProfileLayoutSidebar } from "./sidebar";
|
|
|
|
type Props = {
|
|
children: ReactNode;
|
|
};
|
|
|
|
export default function ProfileSettingsLayout(props: Props) {
|
|
const { children } = props;
|
|
|
|
return (
|
|
<>
|
|
<CommandPalette />
|
|
<AuthenticationWrapper>
|
|
<div className="relative flex h-full w-full overflow-hidden">
|
|
<ProfileLayoutSidebar />
|
|
<main className="relative flex h-full w-full flex-col overflow-hidden bg-custom-background-100">
|
|
<div className="h-full w-full overflow-hidden">{children}</div>
|
|
</main>
|
|
</div>
|
|
</AuthenticationWrapper>
|
|
</>
|
|
);
|
|
}
|