'use client';

import { AuthProvider } from '@/components/id/auth-provider';
import { RealtimeProvider } from '@/components/notifications/realtime-provider';
import { PublicSettingsProvider } from '@/components/id/public-settings-provider';
import { ProjectHead } from '@/components/id/project-head';
import { AppToastProvider } from '@/components/id/toast-provider';

export function Providers({ children }: { children: React.ReactNode }) {
  return (
    <AppToastProvider>
      <PublicSettingsProvider>
        <AuthProvider>
          <ProjectHead />
          <RealtimeProvider>{children}</RealtimeProvider>
        </AuthProvider>
      </PublicSettingsProvider>
    </AppToastProvider>
  );
}
