import { ThemeProvider , ThemeType } from 'dooboo-ui' ; import { AppProvider } from './AppProvider' ; import React from 'react' ; import { theme } from '../utils/theme' ; interface Props { initialThemeType ? : ThemeType ; children ? : React . ReactElement ; } const RootProvider = ( { initialThemeType , children , } ) : React . ReactElement => { return ( < ThemeProvider initialThemeType = { initialThemeType } customTheme = { theme } > < AppProvider > { children } < /AppProvider> < /ThemeProvider>); } ; export default RootProvider ;