'use client';

import { ReactNode } from 'react';
import { SessionProvider } from './session-provider';
import { ThemeProvider } from './theme-provider';
import { QueryProvider } from './query-provider';

interface ProvidersProps {
  children: ReactNode;
}

/**
 * Combined providers wrapper
 * Wraps all context providers in the correct order
 */
export function Providers({ children }: ProvidersProps) {
  return (
    <SessionProvider>
      <QueryProvider>
        <ThemeProvider>{children}</ThemeProvider>
      </QueryProvider>
    </SessionProvider>
  );
}

export { SessionProvider } from './session-provider';
export { ThemeProvider } from './theme-provider';
export { QueryProvider } from './query-provider';
