{"version":3,"file":"0e6decde.js","sources":["../../../node_modules/@shopify/hydrogen/dist/esnext/hooks/useCart/useCart.js"],"sourcesContent":["import React from 'react';\nimport { CartContext } from '../../components/CartProvider/context.js';\n/**\n * The `useCart` hook provides access to the cart object. It must be a descendent of a `CartProvider` component.\n */\nexport function useCart() {\n const context = React.useContext(CartContext);\n if (!context) {\n throw new Error('Expected a Cart Context, but no Cart Context was found');\n }\n return context;\n}\n"],"names":["useCart","context","React","CartContext"],"mappings":"0EAKO,SAASA,GAAU,CACtB,MAAMC,EAAUC,EAAM,WAAWC,CAAW,EAC5C,GAAI,CAACF,EACD,MAAM,IAAI,MAAM,wDAAwD,EAE5E,OAAOA,CACX"}