import * as React from 'react' ; import { ThemeProvider } from '$ice/theme' ; export default ( { addProvider , initialData } ) => { if ( ThemeProvider && ( window as any ) . __themesData__ ) { addProvider ( ( { children } ) => { return ( < ThemeProvider initialTheme = { initialData ?. theme } > { children } < /ThemeProvider>); } ) ; } } ;