Files
plane/web/app/[workspaceSlug]/(settings)/settings/account/layout.tsx
gakshita c82e35ff0c routes
2025-04-25 14:43:54 +05:30

30 lines
795 B
TypeScript

"use client";
import { ReactNode } from "react";
import { useParams, usePathname } from "next/navigation";
// components
import { CommandPalette } from "@/components/command-palette";
import { SettingsContentWrapper } from "@/components/settings";
import { ProfileSidebar } from "./sidebar";
type Props = {
children: ReactNode;
};
export default function ProfileSettingsLayout(props: Props) {
const { children } = props;
// router
const pathname = usePathname();
const { workspaceSlug } = useParams();
return (
<>
<CommandPalette />
<div className="relative flex h-full w-full">
<ProfileSidebar workspaceSlug={workspaceSlug.toString()} pathname={pathname} />
<SettingsContentWrapper>{children}</SettingsContentWrapper>
</div>
</>
);
}