@newrelic/gatsby-theme-newrelic
Version:
[](https://opensource.newrelic.com/oss-category/#community-project)
14 lines (11 loc) • 424 B
JavaScript
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';