
import { I18nextProvider } from "react-i18next";
import { Provider as ReduxProvider } from "react-redux";
import { AuthProvider } from "./contexts/auth-context";
import i18n from "./i18n";
import { LanguageProvider } from "./i18n/LanguageContext";
import { store } from "./store";

export function Provider({ children }: { children: React.ReactNode }) {
  return (
    <I18nextProvider i18n={i18n}>
      <LanguageProvider>
        <ReduxProvider store={store}>
          <AuthProvider>
            {children}
          </AuthProvider>
        </ReduxProvider>
      </LanguageProvider>
    </I18nextProvider>
  );
}
