import React, { ReactNode } from "react";
import { UIKitThemeProvider } from '@SharePoint/rencredit_uikit';
import { PopupProvider } from "../contexts/PopupContext.tsx";
import { PreloaderProvider } from "../contexts/PreloaderContext.tsx";

interface AppProviderProps{
  children: ReactNode;
}

export function AppProvider({children}: AppProviderProps){

  return (
    <UIKitThemeProvider>
      <PopupProvider>
        <PreloaderProvider>
          {children}
        </PreloaderProvider> 
      </PopupProvider>
    </UIKitThemeProvider>  
  )
}
