UNPKG

@newrelic/gatsby-theme-newrelic

Version:

[![Community Project header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Project.png)](https://opensource.newrelic.com/oss-category/#community-project)

14 lines (11 loc) 424 B
import React from 'react'; import LayoutContext from './src/components/LayoutContext'; export const wrapRootElement = ({ element }, pluginOptions) => { return ( <LayoutContext.Provider value={pluginOptions.layout}> {element} </LayoutContext.Provider> ); }; export { default as onPreRenderHTML } from './gatsby/on-pre-render-html'; export { default as wrapPageElement } from './gatsby/wrap-page-element';