UNPKG

gatsby-openrpc-theme

Version:

A gatsby theme for generated OpenRPC documentation

19 lines (15 loc) 450 B
/** * Implement Gatsby's Browser APIs in this file. * * See: https://www.gatsbyjs.org/docs/browser-apis/ */ import React from "react" import Layout from "./src/layouts" // Wrapping the root element with any providers needed export const wrapRootElement = ({ element }) => { return element } // Wrap all pages with the Layout component export const wrapPageElement = ({ element, props }) => { return <Layout {...props}>{element}</Layout> }