text: // got this pattern/idea from https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-theme-blog-core/gatsby-config.js
  module.exports = (themeOptions) => {
    const shouldConfigureSourcePlugin =
      themeOptions.shouldConfigureSourcePlugin != null
        ? themeOptions.shouldConfigureSourcePlugin
        : true;
  
    const shouldWrapRootElementWithProvider =
      themeOptions.shouldWrapRootElementWithProvider != null
        ? themeOptions.shouldWrapRootElementWithProvider
        : true;
  
    const storeUrl = themeOptions.storeUrl || null;
    const password = themeOptions.password || null;
    const storefrontAccessToken = themeOptions.storefrontAccessToken || null;
  
    return {
      shouldConfigureSourcePlugin,
      shouldWrapRootElementWithProvider,
      storeUrl,
      password,
      storefrontAccessToken,
    };
  };
  