// seekora-ui-sdk/packages/react/src/hooks/useOptionalShopContext.ts
//
// Lightweight context flag that tells descendants whether
// ShopifyProvider (from @shopify/hydrogen-react) is present
// in the tree. ShopifyContextBridge sets this to `true` when
// it wraps children in <ShopifyProvider>.
//
// We intentionally avoid importing @shopify/hydrogen-react
// internals here -- components that need the actual shop data
// should import useShop() directly from hydrogen-react and
// guard the call with useIsShopifyAvailable().
import { useContext, createContext } from "react";
const ShopifyAvailableContext = createContext(false);
export function useIsShopifyAvailable() {
    return useContext(ShopifyAvailableContext);
}
export { ShopifyAvailableContext };
