"use strict";
"use client";

import React from "react";
import { ThemeProvider } from "./theme-provider";
import { AuthProvider } from "../context/AuthContext";
import { NotificationProvider } from "../context/NotificationContext";
import { ToastProvider } from "./Toast";

export function Providers({ children }: { children: React.ReactNode }) {
    const initialTheme = "light"; // Default theme

    return (
        <ThemeProvider
            attribute="class"
            defaultTheme={initialTheme}
            enableSystem={false}
            disableTransitionOnChange
        >
            <AuthProvider>
                <NotificationProvider>
                    <ToastProvider>
                        {children}
                    </ToastProvider>
                </NotificationProvider>
            </AuthProvider>
        </ThemeProvider>
    );
}
