Files
plane/web/core/components/profile/profile-setting-content-wrapper.tsx
Anmol Singh Bhatia c5cac27026 [WEB-1622] chore: profile setting layout improvement (#4840)
* chore: profile setting content header and wrapper component added

* chore: profile setting content header and wrapper component added

* chore: profile settings layout code refactor
2024-06-17 16:32:36 +05:30

31 lines
788 B
TypeScript

"use client";
import React, { FC } from "react";
// helpers
import { cn } from "@/helpers/common.helper";
import { SidebarHamburgerToggle } from "../core";
type Props = {
children: React.ReactNode;
className?: string;
};
export const ProfileSettingContentWrapper: FC<Props> = (props) => {
const { children, className = "" } = props;
return (
<div className="flex h-full flex-col">
<div className="block flex-shrink-0 border-b border-custom-border-200 p-4 md:hidden">
<SidebarHamburgerToggle />
</div>
<div
className={cn(
"vertical-scrollbar scrollbar-md mx-auto h-full w-full flex flex-col px-8 md:px-20 lg:px-36 xl:px-56 py-10 md:py-16",
className
)}
>
{children}
</div>
</div>
);
};