"use strict";
"use client";

import React from "react";
import { ThemeProvider } from "./theme-provider";
import { AuthProvider } from "../context/AuthContext";
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>
                <ToastProvider>
                    {children}
                </ToastProvider>
            </AuthProvider>
        </ThemeProvider>
    );
}
