import { FC, ReactNode } from "react"; // layout import { SidebarHamburgerToggle } from "@/components/core/sidebar/sidebar-menu-hamburger-toggle"; import { PreferencesMobileHeader } from "@/components/profile/preferences/preferences-mobile-header"; import { useApplication } from "@/hooks/store"; import { ProfileSettingsLayout } from "@/layouts/settings-layout"; // local components import { ProfilePreferenceSettingsSidebar } from "./sidebar"; interface IProfilePreferenceSettingsLayout { children: ReactNode; header?: ReactNode; } export const ProfilePreferenceSettingsLayout: FC = (props) => { const { children, header } = props; const { theme: themeStore } = useApplication(); return ( themeStore.toggleSidebar()} /> } >
{header}
{children}
); };