"use client";

import { ExamProvider } from "@/context/ExamContext";
import { TimerProvider } from "@/context/TimerContext";
import { AuthProvider } from "@/context/AuthContext";
import { ModalProvider } from "@/context/ModalContext";

export function Providers({ children }: { children: React.ReactNode }) {
  return (
    <TimerProvider>
      <AuthProvider>
        <ExamProvider>
          <ModalProvider>{children}</ModalProvider>
        </ExamProvider>
      </AuthProvider>
    </TimerProvider>
  );
}
