import React , { FunctionComponent , ReactElement } from 'react' ; import { ThemeProvider } from 'styled-components' ; import buildConfig from '../constants/buildConfig' ; const wrapWithTheme = ( { children } ) : ReactElement => ( < ThemeProvider theme = { buildConfig ( ) . lightTheme } > { children } < /ThemeProvider>); export default wrapWithTheme as FunctionComponent ;