'use client';

import { FC, PropsWithChildren, useContext } from "react";
import UserLayout from "src/layouts/UserLayout";
import ThemeComponent from "src/@core/theme/ThemeComponent";
import { SettingsContext, SettingsProvider } from "src/@core/context/settingsContext";

export const MainLayout: FC<PropsWithChildren> = ({ children }) => {
  const { settings } = useContext(SettingsContext);

  return (
    <SettingsProvider>
      <ThemeComponent settings={settings}>
        <UserLayout>{children}</UserLayout>
      </ThemeComponent>
    </SettingsProvider>
  )
}