26 lines
509 B
TypeScript
26 lines
509 B
TypeScript
import type { GatsbySSR } from 'gatsby';
|
|
import { StrictMode } from 'react';
|
|
|
|
import { App } from './src/App';
|
|
import { Root } from './src/Root';
|
|
|
|
/**
|
|
*
|
|
* @param options0
|
|
* @param options0.element
|
|
*/
|
|
export const wrapRootElement: GatsbySSR['wrapRootElement'] = ({ element }) => (
|
|
<StrictMode>
|
|
<Root>{element}</Root>
|
|
</StrictMode>
|
|
);
|
|
|
|
/**
|
|
*
|
|
* @param options0
|
|
* @param options0.element
|
|
*/
|
|
export const wrapPageElement: GatsbySSR['wrapPageElement'] = ({ element }) => (
|
|
<App>{element}</App>
|
|
);
|