aboutsummaryrefslogtreecommitdiff
path: root/gatsby-browser.tsx
blob: 855d01b370e1dd48f97659c336f3a7e74e214ce8 (plain)
1
2
3
4
5
6
7
8
9
10
11
import './src/styles/main.css';
import './src/styles/anchor.css';
import * as React from 'react';
import MDXProvider from './src/components/markdown/MDXProvider';
import { UserDataProvider } from './src/context/UserDataContext';

export const wrapRootElement = ({ element }) => (
  <MDXProvider>
    <UserDataProvider>{element}</UserDataProvider>
  </MDXProvider>
);