'use client';

import { Suspense } from 'react';
import { ToastContainer } from '@/components/ui/Toast';
import AuthProvider from '@/components/SessionProvider';
import { PostHogProvider } from '@/components/PostHogProvider';
import CookieBanner from '@/components/CookieBanner';

export function Providers({ children }: { children: React.ReactNode }) {
    return (
        <PostHogProvider>
            <AuthProvider>
                {children}
            </AuthProvider>
            <CookieBanner />
            <ToastContainer />
        </PostHogProvider>
    );
}
