'use client';
import React from 'react';
import {IAppProviderProps} from './app-provider.type';
import {ThemeProviderComponent as ThemeProvider} from '../theme/theme-provider.component';
import {ToastProviderComponent as ToastProvider} from '../toast/toast-provider.component';
import {ResetCSSComponent} from '../reset-css/reset-css.component';

export const AppProviderComponent = ({children, theme}: IAppProviderProps) => {
    return (
        <>
            <ResetCSSComponent />
            <ToastProvider />
            <ThemeProvider theme={theme}>{children}</ThemeProvider>
        </>
    );
};
