@shopify/hydrogen-react
Version:
React components, hooks, and utilities for creating custom Shopify storefronts
13 lines (12 loc) • 417 B
JavaScript
import { jsx } from "react/jsx-runtime";
import { useCartLine } from "./CartLineProvider.mjs";
function CartLineQuantity(props) {
const cartLine = useCartLine();
const { as, ...passthroughProps } = props;
const Wrapper = as ? as : "span";
return /* @__PURE__ */ jsx(Wrapper, { ...passthroughProps, children: cartLine.quantity });
}
export {
CartLineQuantity
};
//# sourceMappingURL=CartLineQuantity.mjs.map