github.com/chenfeining/golangci-lint@v1.0.2-0.20230730162517-14c6c67868df/docs/src/@rocketseat/gatsby-theme-docs/gatsby/wrapRootElement.js (about)

     1  /* eslint-disable */
     2  import React from 'react';
     3  import { ThemeProvider } from '@emotion/react';
     4  
     5  import defaultTheme from '../src/styles/theme';
     6  import GlobalStyle from '../src/styles/global';
     7  
     8  export function wrapRootElement({ element }) {
     9    return (
    10      <ThemeProvider theme={defaultTheme}>
    11        <>
    12          <GlobalStyle />
    13          {element}
    14        </>
    15      </ThemeProvider>
    16    );
    17  }