{"version":3,"file":"89c77b91.js","sources":["../../../node_modules/@shopify/hydrogen/dist/esnext/foundation/useShop/use-shop.js"],"sourcesContent":["import { ShopifyContext } from '../ShopifyProvider/index.js';\nimport { useEnvContext } from '../ssr-interop.js';\n/**\n * The `useShop` hook provides access to values within\n * [the `shopify` property in the `hydrogen.config.js` file](https://shopify.dev/custom-storefronts/hydrogen/framework/hydrogen-config).\n * The `useShop` hook must be a descendent of a `ShopifyProvider` component.\n */\nexport function useShop() {\n const config = useEnvContext((req) => req.ctx.shopifyConfig, ShopifyContext);\n if (!config) {\n throw new Error('No Shopify Context found');\n }\n return config;\n}\n"],"names":["useShop","config","useEnvContext","req","ShopifyContext"],"mappings":"iFAOO,SAASA,GAAU,CACtB,MAAMC,EAASC,EAAeC,GAAQA,EAAI,IAAI,cAAeC,CAAc,EAC3E,GAAI,CAACH,EACD,MAAM,IAAI,MAAM,0BAA0B,EAE9C,OAAOA,CACX"}