/**
 * Copyright (c) 2023-present Pi Dash Software, Inc. and contributors
 * SPDX-License-Identifier: AGPL-3.0-only
 * See the LICENSE file for details.
 */

import { cn } from "@pi-dash/utils";
import { SidebarHamburgerToggle } from "@/components/core/sidebar/sidebar-menu-hamburger-toggle";

type Props = {
  children: React.ReactNode;
  className?: string;
};

export function ProfileSettingContentWrapper(props: Props) {
  const { children, className = "" } = props;
  return (
    <div className="flex h-full flex-col">
      <div className="block flex-shrink-0 border-b border-subtle p-4 md:hidden">
        <SidebarHamburgerToggle />
      </div>

      <div
        className={cn(
          "vertical-scrollbar mx-auto flex scrollbar-md h-full w-full flex-col px-8 py-10 md:px-20 md:py-16 lg:px-36 xl:px-56",
          className
        )}
      >
        {children}
      </div>
    </div>
  );
}
