"use client";

import { AuthGuard } from "../../components/layout/auth-guard";
import { AppShell } from "../../components/layout/app-shell";
import { UserPreferencesProvider } from "../../components/layout/user-preferences-provider";
import { ViewSettingsProvider } from "../../components/layout/view-settings-provider";

export default function ProtectedLayout({ children }: Readonly<{ children: React.ReactNode }>) {
  return (
    <AuthGuard>
      <UserPreferencesProvider>
        <ViewSettingsProvider>
          <AppShell>{children}</AppShell>
        </ViewSettingsProvider>
      </UserPreferencesProvider>
    </AuthGuard>
  );
}
