github.com/nozzle/golangci-lint@v1.49.0-nz3/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  }