text: import React from "react";
  import Layout from "./src/components/Layout";
  import "./src/styles/main.css"
  import "@fontsource/open-sans" // Defaults to weight 400 with all styles included.
  
  const transitionDelay = 350;
  
  export const wrapPageElement = ({ element, props }) => {
    return <Layout {...props}>{element}</Layout>;
  };
  
  export const shouldUpdateScroll = ({
    routerProps: { location },
    getSavedScrollPosition
  }) => {
    if (location.action === "PUSH") {
      window.setTimeout(() => window.scrollTo(0, 0), transitionDelay);
    } else {
      const savedPosition = getSavedScrollPosition(location);
      window.setTimeout(
        () => window.scrollTo(...(savedPosition || [0, 0])),
        transitionDelay
      );
    }
    return false;
  };