16 lines
450 B
JavaScript
16 lines
450 B
JavaScript
import React from 'react';
|
|
import { I18nextProvider } from 'react-i18next';
|
|
|
|
import i18n from 'i18n';
|
|
import Layout from 'components/Layout';
|
|
|
|
// eslint-disable-next-line react/prop-types
|
|
export const wrapPageElement = ({ element }) => {
|
|
return <Layout>{ element }</Layout>;
|
|
};
|
|
|
|
// eslint-disable-next-line react/prop-types
|
|
export const wrapRootElement = ({ element }) => {
|
|
return <I18nextProvider i18n={ i18n }>{ element }</I18nextProvider>;
|
|
};
|